From 30107cc6faf9303deb9de2d468e0a11a6ef37301 Mon Sep 17 00:00:00 2001 From: Arthur Bols Date: Thu, 22 Dec 2022 18:33:28 +0100 Subject: [PATCH] [Piece] Add array with pieces for promotion --- Piece.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Piece.hpp b/Piece.hpp index 50fee55..d7e2070 100644 --- a/Piece.hpp +++ b/Piece.hpp @@ -24,6 +24,8 @@ class Piece { public: + constexpr static const PieceType PromotionTypes[4] = {PieceType::Knight, PieceType::Bishop, PieceType::Rook, PieceType::Queen}; + using Optional = std::optional; Piece(PieceColor color, PieceType type);