diff options
Diffstat (limited to 'labb5/src/Boggle.cpp')
| -rwxr-xr-x | labb5/src/Boggle.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/labb5/src/Boggle.cpp b/labb5/src/Boggle.cpp new file mode 100755 index 0000000..9988c4e --- /dev/null +++ b/labb5/src/Boggle.cpp @@ -0,0 +1,22 @@ +// This is the .cpp file you will edit and turn in. +// We have provided a minimal skeleton for you, +// but you must finish it as described in the spec. +// Also remove these comments here and add your own. +// TODO: remove this comment header and replace it with your own + +#include <sstream> +#include "Boggle.h" +#include "random.h" +#include "shuffle.h" +#include "strlib.h" + +static const int NUM_CUBES = 16; // the number of cubes in the game +static const int CUBE_SIDES = 6; // the number of sides on each cube +static string CUBES[NUM_CUBES] = { // the letters on all 6 sides of every cube + "AAEEGN", "ABBJOO", "ACHOPS", "AFFKPS", + "AOOTTW", "CIMOTU", "DEILRX", "DELRVY", + "DISTTY", "EEGHNW", "EEINSU", "EHRTVW", + "EIOSST", "ELRTTY", "HIMNQU", "HLNNRZ" +}; + +// TODO: implement the members you declared in Boggle.h |
