Created
June 9, 2017 21:16
-
-
Save anonymous/21708f7645cc8c9066c0a16a1b241d34 to your computer and use it in GitHub Desktop.
PlayGame
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
void PlayGame() | |
{ | |
BCGAME.Reset(); | |
PrintIntro(); | |
//loop for number of turns asking for guesses | |
constexpr int32 NUMBER_OF_TURNS = 5; | |
//TODO change this to a while loop after we get guess checking | |
for (int32 count = 1; count <= NUMBER_OF_TURNS; count++) | |
{ | |
//declare and define Guess for Playgame | |
FText Guess = /* Guess returned from getguess */GetGuess(); | |
//TODO make a loop checking guess validity | |
//submit valid guess to game | |
FBullCowCount BULLS_COWS = BCGAME.SubmitGuess(Guess); | |
//update number of bulls and cows | |
std::cout << "\nYou Got " << BULLS_COWS.Bulls << " Bulls and "; | |
std::cout << BULLS_COWS.Cows << " Cows" << std::endl; | |
} | |
GameOver();//TODO make this better | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment