SebLague / Chess-Challenge

Create your own tiny chess bot!
https://www.youtube.com/watch?v=Ne40a5LkK6A
MIT License
1.77k stars 1.06k forks source link

board.MakeMove doesnt change board.IsWhiteToMove #437

Closed Gamaya0 closed 1 year ago

Gamaya0 commented 1 year ago

Here the Bot has the black pieces, but board.MakeMove doesnt change board.IsWhiteToMove to true when using Move.NullMove. The goal is to get the other players Moves without making one my self. Is there any other way of doing that? image

SebLague commented 1 year ago

The make move function ignores null moves. If you want to skip the turn, use the TrySkipTurn/ForceSkipTurn and UndoSkipTurn functions instead

Gamaya0 commented 1 year ago

ok thanks