diff options
| author | Adam <adammegarules1@gmail.com> | 2026-07-28 19:04:46 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-07-28 19:04:46 +0200 |
| commit | ccb929172587fbfb8fb000d7992bdbbdac6f53ae (patch) | |
| tree | 9a273513c50284a20266361b3f5304c539975fe2 /src/board.hpp | |
| parent | 40e242dc5450e1661c817b0bad8f9748388c278a (diff) | |
renaming none to none piece
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; } |
