This commit is contained in:
Love 2024-09-12 14:41:28 +02:00
parent 9bb0e8823c
commit aaf6902e93

View File

@ -9,14 +9,13 @@
#ifndef _boggle_h #ifndef _boggle_h
#define _boggle_h #define _boggle_h
#include <iostream>
#include <vector>
#include <string>
#include "lexicon.h" #include "lexicon.h"
#include <iostream>
#include <string>
#include <vector>
static const int NUM_ROLLED_CUBES = 4; 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;
@ -28,12 +27,11 @@ public:
bool isWordEnglish(const std::string &word) const; bool isWordEnglish(const std::string &word) const;
bool isWordLongEnough(const std::string &word) const; bool isWordLongEnough(const std::string &word) const;
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, NUM_ROLLED_CUBES> m_showingSides; std::array<std::string, NUM_ROLLED_CUBES> m_showingSides;
Lexicon m_englishWords; Lexicon m_englishWords;
}; };
#endif #endif