Compare commits

...

2 Commits

Author SHA1 Message Date
a57c821530 Fix dictionaryFile 2024-09-12 22:33:48 +02:00
b026cb63bd Imports 2024-09-12 22:30:21 +02:00
4 changed files with 1 additions and 11 deletions

View File

@ -7,18 +7,14 @@
// Author: Love Billenius <lovbi127@student.liu.se> // Author: Love Billenius <lovbi127@student.liu.se>
#include "Boggle.h" #include "Boggle.h"
#include "random.h"
#include "shuffle.h" #include "shuffle.h"
#include "strlib.h"
#include <fstream>
#include <sstream>
#include <unordered_set> #include <unordered_set>
// The res folder isn't copied the same way on macOS // The res folder isn't copied the same way on macOS
#ifdef __APPLE__ #ifdef __APPLE__
const std::string Boggle::s_DICTIONARY_FILE = "../../../EnglishWords.dat"; const std::string Boggle::s_DICTIONARY_FILE = "../../../EnglishWords.dat";
#else #else
const std::string Boggle::DICTIONARY_FILE = "EnglishWords.dat"; const std::string Boggle::s_DICTIONARY_FILE = "EnglishWords.dat";
#endif #endif
static const int g_NUM_CUBES = 16; // the number of cubes in the game static const int g_NUM_CUBES = 16; // the number of cubes in the game

View File

@ -10,7 +10,6 @@
#define _boggle_h #define _boggle_h
#include "lexicon.h" #include "lexicon.h"
#include <iostream>
#include <string> #include <string>
#include <unordered_set> #include <unordered_set>
#include <vector> #include <vector>

View File

@ -13,10 +13,8 @@
* with an unmodified version of all provided code files. * with an unmodified version of all provided code files.
*/ */
#include <fstream>
#include <iostream> #include <iostream>
#include <string> #include <string>
#include "random.h"
#include "strlib.h" #include "strlib.h"
#include "Boggle.h" #include "Boggle.h"
#include "bogglemain.h" #include "bogglemain.h"

View File

@ -4,11 +4,8 @@
#include "Boggle.h" #include "Boggle.h"
#include "bogglemain.h" #include "bogglemain.h"
#include "strlib.h"
#include <cstdlib> #include <cstdlib>
#include <iomanip>
#include <iostream> #include <iostream>
#include <sstream>
#include <thread> #include <thread>
static const size_t LINE_LENGTH = 80; static const size_t LINE_LENGTH = 80;