11-13-2020, 02:22 AM
Hello,
I have a problem with swap. I have a feeling that the createSwapMove() method is not sufficient for what I want to do (play Hex automatically). I guess what's wrong is that the swap action has to be stacked with a change of active player. It would then be necessary either that createSwapMove() additionally changes the active player (with an option in parameter, for example) or that I have a way to have the action which changes the current player and a method to concatenate a move to this change of player. I'm assuming the last procedure is already implemented. If my guess is right, how can I solve my problem?
Thank you so much.
Regards.
I have a problem with swap. I have a feeling that the createSwapMove() method is not sufficient for what I want to do (play Hex automatically). I guess what's wrong is that the swap action has to be stacked with a change of active player. It would then be necessary either that createSwapMove() additionally changes the active player (with an option in parameter, for example) or that I have a way to have the action which changes the current player and a method to concatenate a move to this change of player. I'm assuming the last procedure is already implemented. If my guess is right, how can I solve my problem?
Thank you so much.
Regards.