aboutsummaryrefslogtreecommitdiff
path: root/src/board/board.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/board/board.hpp')
-rw-r--r--src/board/board.hpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/board/board.hpp b/src/board/board.hpp
index bd8efba..b35773d 100644
--- a/src/board/board.hpp
+++ b/src/board/board.hpp
@@ -18,12 +18,11 @@ enum GameState {
TURN,
WHITE_WON,
BLACK_WON,
- STALEMATE,
DRAW,
};
struct Piece {
- bool color = 0;
+ bool color = false;
PieceType type = NONEPIECE;
};
@@ -35,7 +34,7 @@ struct Position {
};
struct TranspositionsEntry {
int depth;
- float Eval;
+ int Eval;
};
struct BitBoards {
uint64_t whitePawns;
@@ -54,7 +53,7 @@ struct BitBoards {
};
struct Game {
Piece pieces[64];
- bool turn = 1; // 1 white; 0 black
+ bool turn = true; // 1 white; 0 black
bool whiteCastleKing = false;
bool whiteCastleQueen = false;
bool blackCastleKing = false;
@@ -62,7 +61,7 @@ struct Game {
uint8_t halfMoveClock = 0;
uint16_t MoveClock = 0;
Position enPassant;
- bool canEnpassant = 0;
+ bool canEnpassant = false;
GameState state = TURN;
std::unordered_map<uint64_t, int> ThreeFoldMap;
std::unordered_map<uint64_t, TranspositionsEntry> *Transpositions = nullptr;
@@ -92,14 +91,14 @@ struct UndoMove {
bool oldCanEnpassant;
Position oldEnPassant;
- bool OldwhiteCastleKing;
- bool OldwhiteCastleQueen;
- bool OldblackCastleKing;
- bool OldblackCastleQueen;
+ bool OldWhiteCastleKing;
+ bool OldWhiteCastleQueen;
+ bool OldBlackCastleKing;
+ bool OldBlackCastleQueen;
int oldHalfMoveClock;
int oldMoveClock;
- uint64_t zobristKey;
+ uint64_t ZobristKey;
GameState oldState;
// castling