diff --git a/Chess-Challenge/src/API/Board.cs b/Chess-Challenge/src/API/Board.cs
index aac1899..b85d1c3 100644
--- a/Chess-Challenge/src/API/Board.cs
+++ b/Chess-Challenge/src/API/Board.cs
@@ -97,6 +97,7 @@ namespace ChessChallenge.API
repetitionTable.TryPop();
board.UndoMove(new Chess.Move(move.RawValue), inSearch: true);
OnPositionChanged();
+ depth--;
}
}
diff --git a/Chess-Challenge/src/Framework/Application/Core/Settings.cs b/Chess-Challenge/src/Framework/Application/Core/Settings.cs
index dc70c31..b1a5fa4 100644
--- a/Chess-Challenge/src/Framework/Application/Core/Settings.cs
+++ b/Chess-Challenge/src/Framework/Application/Core/Settings.cs
@@ -4,7 +4,7 @@ namespace ChessChallenge.Application
{
public static class Settings
{
- public const string Version = "1.19";
+ public const string Version = "1.20";
// Game settings
public const int GameDurationMilliseconds = 60 * 1000;
diff --git a/README.md b/README.md
index 634fc70..ccc3ae6 100644
--- a/README.md
+++ b/README.md
@@ -23,6 +23,7 @@ It has been necessary to make some bug fixes to the original project, and I've a
* V1.17 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).
* V1.18 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.
* V1.19 Fixed potential out of bounds exception. Fixed bug in stalemate detection.
+* V1.20 Fixed (another) bug in the repetition detection.
[There will be no API changes after August 1]