aqtech-ca / mctreesearch4j

MIT License
7 stars 1 forks source link

Root stateNode mutating #6

Closed larkz closed 3 years ago

larkz commented 3 years ago

This code mutates the root stateNode in the solver for some reason. It no longer goes back to the original grid of all zeroes, but always continues from the last grid configuration. @JunTaoLuo

Originally posted by @larkz in https://github.com/JunTaoLuo/KotlinMCTS/pull/5#r546702106

larkz commented 3 years ago

Despite implementing the initialState() method in the MDP interface the root node keeps changing.

larkz commented 3 years ago

I identified the location where this is happening, https://github.com/JunTaoLuo/KotlinMCTS/blob/405cefe36366a7a2499955b8e04b687906ee4f87/app/src/main/kotlin/Mcts/MCTSSolver.kt#L153