Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
And handle the castle directly in do/undo_move(). This allow to greatly simplify the code. Here the beast is the nasty Chess960 that is really tricky to get it right because could be that 'from' and 'to' squares are the same or that king's 'to' square is rook's 'from' square. Anyhow should work: verified on all Chess960 starting positions. No functional and no speed change also in Chess960.
- Loading branch information
Showing
2 changed files
with
73 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters