Python-Checkers-AI
Python-Checkers-AI copied to clipboard
Minimax Algorithm displays full moves calculation before taking a move
Hi, I've got a problem where the board is displaying correctly, however once a human moves their first piece, the computer quickly displays every move it is calculating before making a move. How do I stop this please?
I also had this issue, you have to
- Remove the call to draw_moves from the get_all_moves function, where it gets called repeatedly during the evaluation process.
- Call draw_moves only after the AI has made its final move, ensuring that the moves are drawn only once, and only the chosen move is displayed.