move constant to header

This commit is contained in:
Love 2024-09-12 14:34:36 +02:00
parent 5eb7c59019
commit 92b62a9990

View File

@ -14,6 +14,9 @@
#include <string>
#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<std::string> m_playedWords;
std::array<std::string, 4> m_showingSides;
std::array<std::string, NUM_ROLLED_CUBES> m_showingSides;
Lexicon m_englishWords;
};