still having some trouble with the x = 3 in the loop. heres how it looks now
for(int x = 0; x < 3 && hasWon == false; x++)
{
if(game1.getAnswer() == guess)
...
Type: Posts; User: m49er704
still having some trouble with the x = 3 in the loop. heres how it looks now
for(int x = 0; x < 3 && hasWon == false; x++)
{
if(game1.getAnswer() == guess)
...
Oh ok I understand.
Yes I encountered that. Well I can't say if x > 3 because the loop only runs 3 times ?
I tried if(guess != getANswer()
{ "you lose"}
But that will tell you that you lose no...
no it didn't work
do you mean turning it from true back to false?
that's what it seems like its doing. when the user win it will not enter the for loop again?
im just confused on how to fix that
well I put
hasWon = false; in the else statement
when the guess is the same as the dice roll and i enter yes again it only lets me enter the guess. then its asks me if i want to go again instead of running three rolls
--- Update ---
import...