diff options
| author | Adam <adammegarules1@gmail.com> | 2026-07-28 11:15:08 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-07-28 11:15:08 +0200 |
| commit | 3109a2516e75072835f1998a9b702003781612d5 (patch) | |
| tree | e0e2bbe0a1f31876884a65232557ec27f6816e57 /src/board.hpp | |
| parent | bb30752226c59148ae36beb248c8e4ed6eac39d1 (diff) | |
preventing 3 fold repetion
Diffstat (limited to 'src/board.hpp')
| -rw-r--r-- | src/board.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/board.hpp b/src/board.hpp index 1c53827..592b438 100644 --- a/src/board.hpp +++ b/src/board.hpp @@ -3,6 +3,7 @@ #include <cstdint> #include <string> +#include <unordered_map> enum PieceType { NONE, PAWN, @@ -44,6 +45,7 @@ struct Game { Position enPassant; bool canEnpassant = 0; GameState state = TURN; + std::unordered_map<uint64_t, int> ThreeFoldMap; }; struct Move { |
