removed static
clean up
This commit is contained in:
parent
85c042b8b7
commit
3da0f6cd5d
Binary file not shown.
@ -35,9 +35,9 @@ public class RockPaperScissors {
|
||||
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) {
|
||||
userInputWord = "Rock";
|
||||
@ -76,8 +76,7 @@ public class RockPaperScissors {
|
||||
|
||||
public int letComputerChoose() {
|
||||
Random rgen = new Random();
|
||||
int computerInput = rgen.nextInt(1,4);
|
||||
return computerInput;
|
||||
return rgen.nextInt(1,4);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user