From dfbceae84816e12ebb50480df588c2b2495d64e9 Mon Sep 17 00:00:00 2001 From: Love Billenius Date: Wed, 11 Sep 2024 17:36:05 +0200 Subject: [PATCH] header --- src/Boggle.cpp | 24 ++++++++++++------------ src/Boggle.h | 15 ++++++++------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/src/Boggle.cpp b/src/Boggle.cpp index 9988c4e..23f5aac 100755 --- a/src/Boggle.cpp +++ b/src/Boggle.cpp @@ -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 -#include #include "Boggle.h" #include "random.h" #include "shuffle.h" #include "strlib.h" +#include 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" -}; +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 diff --git a/src/Boggle.h b/src/Boggle.h index 3abe9b5..36a518e 100755 --- a/src/Boggle.h +++ b/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 #ifndef _boggle_h #define _boggle_h @@ -22,8 +24,7 @@ public: // TODO: decide the public member functions and declare them private: - // TODO: decide the private member variables/functions and declare them - + // TODO: decide the private member variables/functions and declare them }; #endif