Python-Checkers-AI icon indicating copy to clipboard operation
Python-Checkers-AI copied to clipboard

Minimax Algorithm displays full moves calculation before taking a move

Open JamesIngleton100102503 opened this issue 1 year ago • 1 comments

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?

JamesIngleton100102503 avatar Apr 15 '24 10:04 JamesIngleton100102503

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.

ViktoriiaSytnik avatar Jan 11 '25 01:01 ViktoriiaSytnik