Here’s the Game ‘loop’ I came up with in the challenge for this lesson.
I had a couple of simple game loops in mind one with less detail and one with more which also had the game loop back on itself to give further instructions if the answer is wrong but there is more lives left or go ahead and pick a new word/ increase the difficulty if the player is correct in her guess. However I settled for the more simple version shown below
I misunderstood lol and made a quick while loop in notepad;
FString HiddenWord = “paint”;
std::cin >> Guess;
while (HiddenWord != Guess)
{
std::cin >> Guess;
}
if (HiddenWord == Guess)
{
std::cout << TEXT(“Well Done!”);
}
This is my loop.
Forgot my penmenship sucks.
The condition for checking if the incorrect guesses is fewer than 5 has the yes/no conditions reversed.
I don’t think I have any flowchart making tools on my PC, but I used Clip Studio Paint to create a rough timeline of the game flow as it is. I should get back not only to coding, but drawing again too - since I know that’s an important skill for the future of game development.