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

Double jump issue

Open Nevesgmd opened this issue 4 years ago • 0 comments

As mentioned on this issue, there's a double jump bug whenever the second jump happens on a row < 5. To fix it, just correct the _traverse_left and _traverse_right methods of the Board class passing the minimum value of the max() function as -1.

This: row = max(r-3, -1)

Instead of this: row = max(r-3, 0)

Nevesgmd avatar Oct 04 '20 02:10 Nevesgmd