move constant to header

This commit is contained in:
Love 2024-09-12 14:34:36 +02:00
parent 538a837639
commit b5fbdd5ab5

View File

@ -14,6 +14,9 @@
#include <string> #include <string>
#include "lexicon.h" #include "lexicon.h"
static const int NUM_ROLLED_CUBES = 4;
class Boggle { class Boggle {
public: public:
static const std::string DICTIONARY_FILE; static const std::string DICTIONARY_FILE;
@ -26,7 +29,7 @@ public:
bool isWordPlayed(const std::string &word) const; bool isWordPlayed(const std::string &word) const;
private: private:
std::vector<std::string> m_playedWords; std::vector<std::string> m_playedWords;
std::array<std::string, 4> m_showingSides; std::array<std::string, NUM_ROLLED_CUBES> m_showingSides;
Lexicon m_englishWords; Lexicon m_englishWords;
}; };