回答編集履歴
2
ソースの修正
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
System.out.print("何を出しますか? : ");
|
30
30
|
|
31
|
-
|
31
|
+
|
32
32
|
|
33
33
|
|
34
34
|
|
@@ -38,17 +38,17 @@
|
|
38
38
|
|
39
39
|
int player = Integer.parseInt(line);
|
40
40
|
|
41
|
-
|
41
|
+
|
42
42
|
|
43
43
|
Random rnd = new Random();
|
44
44
|
|
45
|
-
int computer = rnd.nextInt(3);
|
45
|
+
int computer = rnd.nextInt(3);
|
46
46
|
|
47
|
-
|
47
|
+
|
48
48
|
|
49
|
+
System.out.println("じゃんけんぽん!");
|
49
50
|
|
50
|
-
|
51
|
-
System.out.print("\n");
|
51
|
+
System.out.println("\n");
|
52
52
|
|
53
53
|
System.out.print("あなた\n");
|
54
54
|
|
1
ソースの修正
test
CHANGED
@@ -22,6 +22,14 @@
|
|
22
22
|
|
23
23
|
public static void main(String[] args) {
|
24
24
|
|
25
|
+
|
26
|
+
|
27
|
+
System.out.print("0:グー 1:チョキ 2:パー\n");
|
28
|
+
|
29
|
+
System.out.print("何を出しますか? : ");
|
30
|
+
|
31
|
+
System.out.print("じゃんけんぽん!\n");
|
32
|
+
|
25
33
|
|
26
34
|
|
27
35
|
Scanner sc = new Scanner(System.in);
|
@@ -36,13 +44,7 @@
|
|
36
44
|
|
37
45
|
int computer = rnd.nextInt(3);
|
38
46
|
|
39
|
-
|
40
|
-
|
41
|
-
|
47
|
+
|
42
|
-
|
43
|
-
System.out.print("何を出しますか? : ");
|
44
|
-
|
45
|
-
System.out.print("じゃんけんぽん!\n");
|
46
48
|
|
47
49
|
|
48
50
|
|