Replies: 1 comment
-
To generate moves uniformly at random, legality of all candidates has to be checked, which is not better than generating a list of all legal moves. If the distribution does not matter, one strategy could be to generate moves only for a randomly selected piece or region of the board. This is possible using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am writing search algorithms for chess. For this, I need to run random games. As of now and as far as I know, the only way to get a random move with this library is to:
1 Get the list of legal moves
2 Choose one at random
It would be very handy to have a function that returns a random legal move without the need to calculate all the legal moves available
Is there a way I am not aware of?
Beta Was this translation helpful? Give feedback.
All reactions