Browse Source

Punktestand hinzugefügt

master
Patrik Kriska 2 years ago
parent
commit
709c0efe05
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/GameClass.java
  2. 1
    1
      src/RockPaperScissors.java

+ 1
- 1
src/GameClass.java View File

@@ -1,6 +1,6 @@
public class GameClass {

public static void main(String[] args){
while (RockPaperScissors.playerScore < 7 ) RockPaperScissors.runGame();
while (RockPaperScissors.playerScore < 7 && RockPaperScissors.computerScore < 7) RockPaperScissors.runGame();
}
}

+ 1
- 1
src/RockPaperScissors.java View File

@@ -77,7 +77,7 @@ public class RockPaperScissors {

public static int letComputerChoose() {
Random rgen = new Random();
int computerInput = rgen.nextInt(1,3);
int computerInput = rgen.nextInt(1,4);
return computerInput;
}


Loading…
Cancel
Save