From 92b62a9990aa1092fa1b7fc76945b8b49c7cb097 Mon Sep 17 00:00:00 2001 From: Love Billenius Date: Thu, 12 Sep 2024 14:34:36 +0200 Subject: [PATCH] move constant to header --- src/Boggle.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Boggle.h b/src/Boggle.h index 2f363f0..36c98a8 100755 --- a/src/Boggle.h +++ b/src/Boggle.h @@ -14,6 +14,9 @@ #include #include "lexicon.h" +static const int NUM_ROLLED_CUBES = 4; + + class Boggle { public: static const std::string DICTIONARY_FILE; @@ -26,7 +29,7 @@ public: bool isWordPlayed(const std::string &word) const; private: std::vector m_playedWords; - std::array m_showingSides; + std::array m_showingSides; Lexicon m_englishWords; };