diff options
Diffstat (limited to 'src/board.hpp')
| -rw-r--r-- | src/board.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/board.hpp b/src/board.hpp index 993a66d..9418571 100644 --- a/src/board.hpp +++ b/src/board.hpp @@ -6,7 +6,7 @@ #include <unordered_map> enum PieceType { - NONE, + NONEPIECE, PAWN, KNIGHT, BISHOP, @@ -25,7 +25,7 @@ enum GameState { struct Piece { bool color = 0; - PieceType type = NONE; + PieceType type = NONEPIECE; bool moved = false; }; @@ -52,7 +52,7 @@ struct Move { Position From; Position To; - PieceType promotion = NONE; + PieceType promotion = NONEPIECE; bool operator==(const Move &other) const { return From == other.From && To == other.To && promotion == other.promotion; } |
