Game always crashes

Hey guys, I’m having issues with the 2 for cicle used in the SubmitGuess method, for whatever reason when I write a word to test the program it always goes in a infinite loop although I wrote the same code as the one in the lecture.
Even writing a word with the same length as the one that the HiddenWord has makes the game crash.
Here is my code:
Thanks to anyone who’s willing to help me out and also sorry for my bad formatting.

1 Like

I’m sorry, but the code you provided has no “for” loops in the implementation of SubmitGuess(). Can you verify that you provided the correct version of it?

1 Like

How did you get on with this Damien?

1 Like

Hello @Damien_Carter,

are you still there?

Copy the code from @ben into your FBullCowGame.cpp:


Privacy & Terms