Skip to content

Instantly share code, notes, and snippets.

@dj-amadeous
Created September 12, 2017 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dj-amadeous/d493195c12352ff0697406163e55814a to your computer and use it in GitHub Desktop.
Save dj-amadeous/d493195c12352ff0697406163e55814a to your computer and use it in GitHub Desktop.
class header for my puzzle class
class puzzle
{
public:
puzzle(std::string solution);
//method for guesses
bool guess(char);
void printsol();
//printing out bool values for testing
bool getGuesses(int);
//method to test the solution is valid
void isSolValid();
//getter for valid solution
bool getSolVal();
protected:
private:
std::string solution;
bool guesses[255]{};
bool isSolVal{true};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment