From e40f10adde0043664b35804c8606f6362121d835 Mon Sep 17 00:00:00 2001 From: Justin Pilon Date: Sun, 7 Apr 2019 00:05:01 -0600 Subject: [PATCH] Change CHESS_CARS to CPP std::array --- .gitignore | 0 LICENSE | 0 README.md | 0 src/constants.h | 2 +- 4 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 LICENSE mode change 100644 => 100755 README.md mode change 100644 => 100755 src/constants.h diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/src/constants.h b/src/constants.h old mode 100644 new mode 100755 index f0f995b..f5c3f8c --- a/src/constants.h +++ b/src/constants.h @@ -20,7 +20,7 @@ enum PieceType { }; // Access with CHESS_CHARS[PieceType] to get the character for the piece. -const char CHESS_CHARS[13] = { +const std::array CHESS_CHARS = { ' ', 'p', 'n', 'b', 'r', 'q', 'k', 'P', 'N', 'B', 'R', 'Q', 'K'