From 3da0f6cd5d9240dd8fa852b2b666b34fb32832b4 Mon Sep 17 00:00:00 2001 From: kriskapa88057 Date: Wed, 16 Nov 2022 15:04:36 +0100 Subject: [PATCH] removed static clean up --- .../RockPaperScissors.class | Bin 2735 -> 2746 bytes src/RockPaperScissors.java | 7 +++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/out/production/Interaktion Projekt/RockPaperScissors.class b/out/production/Interaktion Projekt/RockPaperScissors.class index 91d512b0fc635dcbedda3b3f9c090037acc0953e..bf458e068e999a5486cea4f83bad234dee054837 100644 GIT binary patch delta 200 zcmZ24x=VD!F*dP$24)~+V35_?#vot=Bt&erWVTJd&8Dd>z`)HQ#=yfM!@$cB2UMZ} zQOFR_kO1VdGDt8a0c9B(xEO>t>$A%s7?{AyO@*v{rCAm*a0=P@ zE@zODW(6_rfJ{MYHW1SR$Yc|8^4-Lsq_c~`g@IukgO<+Z=^R#y5bI2#)-f=cG9-ho TV`ea7NM%T4VA}kG<2WM#LR}wT delta 189 zcmdlbx?Xg{F*eaW24)~+V35(;#vot=Bt&dwc1*s*rm4-(z|A1az{4QTz{?N^RG|P- z#}Lnu0OYYUh%+PsWf>W`7=$((u*)-gaxq9UNC5?6fYS3An1GOh!Boh~M~Y^To@R(F=%N|p21-yE(X!hkPNhh0cf=m PLn=cW1LNk;9LE^}_5>az diff --git a/src/RockPaperScissors.java b/src/RockPaperScissors.java index 9c052a9..eea9765 100644 --- a/src/RockPaperScissors.java +++ b/src/RockPaperScissors.java @@ -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); } }