feat: NCS-13 Implement Threefold Repetition
Build & Test (NowChessSystems) TeamCity build finished

This commit is contained in:
2026-04-15 09:47:09 +02:00
parent b2e62dc60c
commit b1684ad3bb
14 changed files with 205 additions and 4 deletions
@@ -5,4 +5,5 @@ enum DrawReason:
case Stalemate
case InsufficientMaterial
case FiftyMoveRule
case ThreefoldRepetition
case Agreement
@@ -13,6 +13,7 @@ case class GameContext(
halfMoveClock: Int,
moves: List[Move],
result: Option[GameResult] = None,
initialBoard: Board = Board.initial,
):
/** Create new context with updated board. */
def withBoard(newBoard: Board): GameContext = copy(board = newBoard)