mira el problema es este ejemplo d como corre
What is your name?
ron
ron, you rolled 6
roll again? (y/n)
y
ron, you rolled 4
roll again? (y/n)
y
ron, you rolled 1
ron, your total 0
Computer rolled 3
Computer rolled 6
Computer rolled 3
Computer rolled 3
Computer rolled 4
Computer rolled 1
Computer's total 0
-------- hasta aki todo bien
---- aki empieza el devergue porq tendria q decir kien gano y no correr la comp y leugo el user.. y asi hasta el final
no hace lo q supuestamente tiene q hacer.
Computer rolled 1
ron, you rolled 4
roll again? (y/n)
n
The Winner is: ron
Do you want to play again? (y/n)
y
ron, you rolled 1
ron, your total 0
Computer rolled 6
Computer rolled 1
Computer's total 0
Do you want to play again? (y/n)
y
ron, you rolled 2
roll again? (y/n)
n
ron, your total 2
Computer rolled 5
Computer rolled 4
Computer rolled 3
Computer rolled 2
Computer rolled 3
Computer rolled 6
Computer rolled 3
Computer's total 26
Do you want to play again? (y/n)
n
para q corra bien tendria q ser algo asi
What is your name?
ron
ron, you rolled 6
roll again? (y/n)
y
ron, you rolled 4
roll again? (y/n)
y
ron, you rolled 6
roll again? (y/n)
n
ron, your total 16
Computer rolled 3
Computer rolled 6
Computer rolled 6
Computer rolled 4
Computer rolled 4
Computer rolled 3
Computer's total 26
Do you want to play again? (y/n)
y
ron, you rolled 3
roll again? (y/n)
y
ron, you rolled 3
roll again? (y/n)
y
ron, you rolled 1
ron, your total 0
Computer rolled 2
Computer rolled 2
Computer rolled 2
Computer rolled 3
Computer rolled 5
Computer rolled 2
Computer rolled 2
Computer rolled 1
Computer's total 0
Do you want to play again? (y/n)
n
ahi funciona bien sin el pedazo d codigo de
// Find out who wins... the one with the greater score will win the game
int computerScore = computerTurn();
int playerScore = turn();
if ( computerScore < playerScore )
System.out.println("The Winner is: " + playerName);
else
System.out.println("The Winner is the Computer");