diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2020-11-17 15:42:27 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2020-11-17 15:42:27 +0100 |
| commit | fb80ac50825c7ca1fa063d3493175b7b27adbdb1 (patch) | |
| tree | 4d84895d45ca2c177ddefe11164575bf6762b3ca /labb5/src/Boggle.cpp | |
| parent | 4065799f7080260f507a5e3ea8c2d8375e735166 (diff) | |
| download | tddd86-fb80ac50825c7ca1fa063d3493175b7b27adbdb1.tar.gz | |
add given code
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 |
