Original code logic bug

Hi Everyone.

I just completed the Bulls Cows game section and noticed a few logical errors in the implementation presented in the video.

I have noticed is that if the word entered is not the same length as the hidden word no lives are lost. I think this is due to the if statement in line 58 in the ProcessGuess function(image below from GitHub). Try just pressing enter or enter a word that is not the same length and you will notice no lives lost.
The way I got around is by changing the order of if statements in ProcessGuess.
Let me know if you have the same issue.
Thanks

Privacy & Terms