header
This commit is contained in:
parent
b9b11d401e
commit
dfbceae848
@ -1,22 +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
|
// |____/ \___/ \__, |\__, |_|\___(_)___| .__/| .__/
|
||||||
|
// |___/ |___/ |_| |_|
|
||||||
|
// Author: Love Billenius <lovbi127@student.liu.se>
|
||||||
|
|
||||||
#include <sstream>
|
|
||||||
#include "Boggle.h"
|
#include "Boggle.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "shuffle.h"
|
#include "shuffle.h"
|
||||||
#include "strlib.h"
|
#include "strlib.h"
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
static const int NUM_CUBES = 16; // the number of cubes in the game
|
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 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
|
static string CUBES[NUM_CUBES] = { // the letters on all 6 sides of every cube
|
||||||
"AAEEGN", "ABBJOO", "ACHOPS", "AFFKPS",
|
"AAEEGN", "ABBJOO", "ACHOPS", "AFFKPS", "AOOTTW", "CIMOTU",
|
||||||
"AOOTTW", "CIMOTU", "DEILRX", "DELRVY",
|
"DEILRX", "DELRVY", "DISTTY", "EEGHNW", "EEINSU", "EHRTVW",
|
||||||
"DISTTY", "EEGHNW", "EEINSU", "EHRTVW",
|
"EIOSST", "ELRTTY", "HIMNQU", "HLNNRZ"};
|
||||||
"EIOSST", "ELRTTY", "HIMNQU", "HLNNRZ"
|
|
||||||
};
|
|
||||||
|
|
||||||
// TODO: implement the members you declared in Boggle.h
|
// TODO: implement the members you declared in Boggle.h
|
||||||
|
13
src/Boggle.h
13
src/Boggle.h
@ -1,8 +1,10 @@
|
|||||||
// This is the .h 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, as well as on the members.
|
// | |_) | (_) | (_| | (_| | | __/_| | | |
|
||||||
// TODO: remove this comment header and replace it with your own
|
// |____/ \___/ \__, |\__, |_|\___(_)_| |_|
|
||||||
|
// |___/ |___/
|
||||||
|
// Author: Love Billenius <lovbi127@student.liu.se>
|
||||||
|
|
||||||
#ifndef _boggle_h
|
#ifndef _boggle_h
|
||||||
#define _boggle_h
|
#define _boggle_h
|
||||||
@ -23,7 +25,6 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
// TODO: decide the private member variables/functions and declare them
|
// TODO: decide the private member variables/functions and declare them
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user