10-16-2022, 09:21 AM
With that "trick" where you copy the context and apply the action to it, you indeed transform it into the fully-resolved format where consequents have been converted from Ludeme-rules-format to concrete-actions-format.
However, this should not be necessary here: the "parentMove" member of the MCTS node classes already is in this format too (and I actually store the other format as well, in a different member named something like "parentMoveWithoutCons").
If I test with my implementation in Amazons (using the code in dev branch with yesterday's commit, so not the master branch or any current public .jar releases), the tree reuse works fine.
However, this should not be necessary here: the "parentMove" member of the MCTS node classes already is in this format too (and I actually store the other format as well, in a different member named something like "parentMoveWithoutCons").
If I test with my implementation in Amazons (using the code in dev branch with yesterday's commit, so not the master branch or any current public .jar releases), the tree reuse works fine.