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 ![]()
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
Great puzzle
- Perhaps you can make VALIDATOR 2 on a separate TEST instead since my solution passed all TESTS but failed on VALIDATORS 2, 4 and 6 because I thought you cannot plant on regions where an existing’s source tree’s tree will grow into
- Would be more interesing if the timeframe is not fixed at 33 years and conversion of seed to trees is not fixed at 10 years