From fb80ac50825c7ca1fa063d3493175b7b27adbdb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Tue, 17 Nov 2020 15:42:27 +0100 Subject: add given code --- labb5/src/Boggle.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 labb5/src/Boggle.cpp (limited to 'labb5/src/Boggle.cpp') 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 +#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 -- cgit v1.2.1