Relative Content

Tag Archive for pythonrecursionchess

How to save and resume state for a chess exploration script

I have a small python script that uses the chess library. It simply iterates all possible games from the starting set of legal moves. It ends a branch when the maximum plies is hit, or when a check mate is found. Additionally, it will log the game if it was a checkmate.