Closed TMPxyz closed 6 years ago
Thanks for the report TMPxyz, very much appreciated.
I found two big issues both in the goal changer (inside the node Init) and in the conflict checker in the Expand function.
The last two commits should fix these and I have also included your unittests (if that's not okay let me know and I'll promptly remove them).
The planner seems to have a bug here.
Here's a unit-test to reproduce it.
So the expected plan is like MineOre -> BuyFood -> MineOre; However the planner can only create plan like MineOre -> BuyFood;