[Community Puzzle] Tiny Forest

OK, if that’s true then you are right. I apologize for not remembering why my initial solution was based on incorrect assumptions. I was able to get it to work, so I think your description is fine. Again, sorry for the false alarm…

1 Like

@sammck No problem :slight_smile:

when we have none tree on the stert map were we place the first tree??

You can’t place any tree directly, but you can plant a seed. You may perform a simulation for each possible location where you can plant a seed.

so at all test we plant a seed ? or just for the case of empty map?

You’ll probably have to simulate for all possible locations for all maps, empty or not.

oh It looks a bit complicated

it’s good to make a class tree? with attribute age and position ?

Sure, that’s a possible approach.

During the implementation I was afraid of how slow my code could be but in the end it went smoothly