Created
September 12, 2017 16:40
-
-
Save dj-amadeous/d493195c12352ff0697406163e55814a to your computer and use it in GitHub Desktop.
class header for my puzzle class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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