Version 1.20 (bug fix in repetition detection)

This commit is contained in:
Sebastian Lague 2023-08-09 14:08:08 +02:00
parent 4ef9025ebf
commit 320ffbdc97
3 changed files with 3 additions and 1 deletions

View file

@ -97,6 +97,7 @@ namespace ChessChallenge.API
repetitionTable.TryPop(); repetitionTable.TryPop();
board.UndoMove(new Chess.Move(move.RawValue), inSearch: true); board.UndoMove(new Chess.Move(move.RawValue), inSearch: true);
OnPositionChanged(); OnPositionChanged();
depth--;
} }
} }

View file

@ -4,7 +4,7 @@ namespace ChessChallenge.Application
{ {
public static class Settings public static class Settings
{ {
public const string Version = "1.19"; public const string Version = "1.20";
// Game settings // Game settings
public const int GameDurationMilliseconds = 60 * 1000; public const int GameDurationMilliseconds = 60 * 1000;

View file

@ -23,6 +23,7 @@ It has been necessary to make some bug fixes to the original project, and I've a
* <b>V1.17</b> Added `BitboardHelper.GetPieceAttacks()` and optimized `board.SquareIsAttackedByOponent()`. Writing `#DEBUG` in a comment will now exclude code in that line from counting towards the token limit (for testing only of course). * <b>V1.17</b> Added `BitboardHelper.GetPieceAttacks()` and optimized `board.SquareIsAttackedByOponent()`. Writing `#DEBUG` in a comment will now exclude code in that line from counting towards the token limit (for testing only of course).
* <b>V1.18</b> Added `timer.IncrementMilliseconds` (this will be 0 for the main tournament, but a small increment may be used in the final playoff games). Fixed a bug in the repetition handling, and optimized check/stalemate detection. * <b>V1.18</b> Added `timer.IncrementMilliseconds` (this will be 0 for the main tournament, but a small increment may be used in the final playoff games). Fixed a bug in the repetition handling, and optimized check/stalemate detection.
* <b>V1.19</b> Fixed potential out of bounds exception. Fixed bug in stalemate detection. * <b>V1.19</b> Fixed potential out of bounds exception. Fixed bug in stalemate detection.
* <b>V1.20</b> Fixed (another) bug in the repetition detection.
[There will be no API changes after August 1] [There will be no API changes after August 1]