you never call this again
Code:
int number = generator.nextInt(100) + 1;
so the number is the same
Quote:
|
and if i type in a break under tries its only go 1 turn in the game.
|
I don't understand what you are trying to do or are saying... you mean
that will break on "break;"
confused as to question or purpose....
I would do two loops...
Code:
bool GameDone=false;
bool CorrectInt=false;
while(!GameDone)
{
initialize all your variables...
while(!CorrectInt)
{
code for game
on correct int guess set CorrectInt = true;
}
Ask if want to play again
on n set GameDone = true;
}