|
|
|
|
|
|
|
|
System.out.println("The score is: " + playerScore + ":" + computerScore); |
|
|
System.out.println("The score is: " + playerScore + ":" + computerScore); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private static String convertToWordUser(int userInput) { |
|
|
|
|
|
|
|
|
public String convertToWordUser(int userInput) { |
|
|
|
|
|
|
|
|
String userInputWord = ""; |
|
|
|
|
|
|
|
|
String userInputWord; |
|
|
|
|
|
|
|
|
if (userInput == 1) { |
|
|
if (userInput == 1) { |
|
|
userInputWord = "Rock"; |
|
|
userInputWord = "Rock"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int letComputerChoose() { |
|
|
public int letComputerChoose() { |
|
|
Random rgen = new Random(); |
|
|
Random rgen = new Random(); |
|
|
int computerInput = rgen.nextInt(1,4); |
|
|
|
|
|
return computerInput; |
|
|
|
|
|
|
|
|
return rgen.nextInt(1,4); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |