public class GameClass { | public class GameClass { | ||||
public static void main(String[] args){ | public static void main(String[] args){ | ||||
while (RockPaperScissors.playerScore < 7 ) RockPaperScissors.runGame(); | |||||
while (RockPaperScissors.playerScore < 7 && RockPaperScissors.computerScore < 7) RockPaperScissors.runGame(); | |||||
} | } | ||||
} | } |
public static int letComputerChoose() { | public static int letComputerChoose() { | ||||
Random rgen = new Random(); | Random rgen = new Random(); | ||||
int computerInput = rgen.nextInt(1,3); | |||||
int computerInput = rgen.nextInt(1,4); | |||||
return computerInput; | return computerInput; | ||||
} | } | ||||