public class Game {
public static void main(String[] args) {
java.util.Scanner input = new java.util.Scanner(System.in);
System.out.println("scissor (0), rock(1), paper (2)");
int gamePlayer = input.nextInt();
int computer = (int)(Math.random() * 3);
if(computer == 0)
{
if( gamePlayer==0)
System.out.println("The computer is scissor . you are scissor too. It is a draw");
else if(gamePlayer == 1)
System.out.println("The computer is scissor . you are rock. you won!");
else
System.out.println("The computer is scissor . you are paper. you lose");
}
else if(computer == 1)
{
if(gamePlayer ==0)
System.out.println("The computer is rock. you are scissor. you lose");
else if(gamePlayer == 1)
System.out.println("The computer is rock. you are rock too. It is a darw");
else
System.out.println("The computer is rock. you are paper. you win!");
}
else
{
if(gamePlayer == 0)
System.out.println("The computer is paper.you are scissor. you won!");
else if(gamePlayer == 1)
System.out.println("The computer is paper. you are rock. you lose!");
else
System.out.println("The computer is paper. you are paper too. It is a draw");
}
}
}