0

I need debuging! Can anybody help with my RSP game?

http://pastebin.com/Tp7GALx9 It should at the end of the round if the player wants to play more or not by Y/N. But when the second round starts it doesn't ask the player anymore, it just puts him in to a loop by playing non-stop. I mean, you can put in <4.> but doesn't seem as effective as it should be...

17th Mar 2017, 8:53 PM
Modestas
Modestas - avatar
1 Resposta
+ 2
for that in c++... char userInput = 'y'; while(userInput == 'y' || userInput == 'Y'){ //play your game here cout << "go again? "; cin >> userInput; }//eowl //rest of main code.
18th Mar 2017, 3:38 AM
Michael Szczepanski
Michael Szczepanski - avatar