Punktestand hinzugefügt
This commit is contained in:
1 parent
690fcb36e0
commit
709c0efe05
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user