This commit is contained in:
Love 2024-09-11 17:36:05 +02:00
parent b9b11d401e
commit dfbceae848
2 changed files with 20 additions and 19 deletions

View File

@ -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 "random.h"
#include "shuffle.h"
#include "strlib.h"
#include <sstream>
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"
};
"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

View File

@ -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
#define _boggle_h
@ -23,7 +25,6 @@ public:
private:
// TODO: decide the private member variables/functions and declare them
};
#endif