Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <string>
- using FString = std::string;
- using int32 = int;
- struct FBullCowCount
- {
- int32 Bulls = 0;
- int32 Cows = 0;
- };
- enum EWordStatus
- {
- Invalid,
- Valid,
- NotIsogram,
- WrongLength,
- };
- class FBullCowGame
- {
- public:
- FBullCowGame(); //constructor
- void Reset();
- int32 GetMaxChances() const;
- int32 GetCurrentChance() const;
- int32 GetHiddenWordLength() const;
- bool GameWon() const;
- EWordStatus GuessCorrect(FString);
- FBullCowCount SubmitGuess(FString);
- private:
- int32 CurrentChance;
- int32 MyMaxChances;
- FString HiddenWord;
- bool bGameWon;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement