Created
November 6, 2017 07:51
-
-
Save anonymous/6b58287cd333acf963019a0411819518 to your computer and use it in GitHub Desktop.
FBullCowGame.h
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
#pragma once | |
#include<string> | |
using int32 = int; | |
using FString = std::string; | |
class FBullCowGame | |
{ | |
public: | |
FBullCowGame(); //constructor | |
int32 GetMaxTries() const; | |
int32 GetCurrentTry() const; | |
bool IsGameWon() const; | |
void Reset(); //TODO make a more rich return value | |
bool CheckGuessValidity(std::string); //TODO make a more rich return value | |
//counts bull & cows and assume gues sis valid | |
BullCowCount SubmitGuess(FString); | |
private: | |
// see constructor for initialization | |
int32 MyCurrentTry; | |
int32 MyMaxTries; | |
FString MyHiddenWord; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment