回答編集履歴
1
コードの修正
    
        answer	
    CHANGED
    
    | @@ -1,4 +1,4 @@ | |
| 1 | 
            -
            箇条書きで書かれている問題文の通り書くだけなのでは?
         | 
| 1 | 
            +
            箇条書きで書かれている問題文の通りに書くだけなのでは?
         | 
| 2 2 | 
             
            ```Java
         | 
| 3 3 | 
             
            import java.util.Scanner;
         | 
| 4 4 | 
             
            import java.util.Random;
         | 
| @@ -22,16 +22,15 @@ | |
| 22 22 | 
             
                        if (isFirst)         // 6
         | 
| 23 23 | 
             
                            System.out.print("最初はグー、じゃんけん:");
         | 
| 24 24 | 
             
                        else                 // 7
         | 
| 25 | 
            -
                            System.out. | 
| 25 | 
            +
                            System.out.print("あいこで:");
         | 
| 26 26 |  | 
| 27 27 | 
             
                        int player = scan.nextInt(); // 8
         | 
| 28 28 | 
             
                        int com = rand.nextInt(3);   // 9
         | 
| 29 29 | 
             
                        System.out.println(hands[com] + "(COM)" + "と"
         | 
| 30 30 | 
             
                            + hands[player] + "(Player)で...");  // 10
         | 
| 31 31 | 
             
                        // 11
         | 
| 32 | 
            -
                        if (com == player) | 
| 32 | 
            +
                        if (com == player)   // 12
         | 
| 33 33 | 
             
                            System.out.println("あいこだよ");
         | 
| 34 | 
            -
                        }
         | 
| 35 34 | 
             
                        else if (com == player-1 || com == player+2) { // 13
         | 
| 36 35 | 
             
                            System.out.println("あなたの負け");
         | 
| 37 36 | 
             
                            break;
         | 
