From 8c842e078fe65559fcdec541f07349cb7716df33 Mon Sep 17 00:00:00 2001 From: Tomasz Sternal Date: Thu, 18 Jan 2024 23:41:08 +0100 Subject: [PATCH] Add drowing lines, change color to green --- mo_gymnasium/envs/fruit_tree/assets/agent.png | Bin 0 -> 9329 bytes mo_gymnasium/envs/fruit_tree/assets/node.png | Bin 0 -> 4001 bytes mo_gymnasium/envs/fruit_tree/fruit_tree.py | 126 +++++++++++++++++- 3 files changed, 122 insertions(+), 4 deletions(-) create mode 100644 mo_gymnasium/envs/fruit_tree/assets/agent.png create mode 100644 mo_gymnasium/envs/fruit_tree/assets/node.png diff --git a/mo_gymnasium/envs/fruit_tree/assets/agent.png b/mo_gymnasium/envs/fruit_tree/assets/agent.png new file mode 100644 index 0000000000000000000000000000000000000000..8027fcb1aa8ed57aac49d23bd89a4b129764d217 GIT binary patch literal 9329 zcmZ{K1zeNe`}Z~`Zh#6yNx@0iV3dT!=njF0M!LHMBu7c7z@$M^MQJ1yM7mo*q!H;B zMA82}p63_u`+wi@*=P5C&bjJ)#kuZt6RoMPaE*wD2m}IMQ&N=G0)fCR_%DnQ7#Z#m zp9OAA?PX*%m1Ja)njWq;_Dc$lA4P21JcMlDsbiVkoWm8Jt=dtwZaO6s3mFD zs=1CG2Z}Pf*YdTFl;#aToTS|$qa79*gv1TygIawpc{ySq{4a`7|LTkWL%I9cq(_*42`fiRTrr?>N4 zriEuuUJ@5m&z@R4Tl>3sJ5+Z$%emdo{OU+zD4+k>Hq%vZ{1v^-5rJ{~0$63vT4uq- zeF8w-!dhR+MokUG0bIjC5HJEn09=8AKhP6<5cKjI1Ohw+d8q)VTDm%On_IbBSabV2 zyWvSdV!oolrL(n{InvkJ$;DIDSDfK;g(z^1ALd~|UM}%+6lc&^(?rU+dRQaxaih7> z3=%|0BvQ=7%0^U6R{kGy;7**u&dbY9l!wR1$A{a8pWD^LmWNkFM1%*;$HT{m0#=|r z{an1veNir+jDIuv7av(`PfHJbH!piv7bKpqxrM8@mpB6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