package com.company;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
while (true) {
System.out.println("*******************************");
System.out.println("--------歡迎進(jìn)入猜拳游戲--------");
System.out.println("請(qǐng)出拳:(1是剪刀玻侥,2是石頭贷岸,3是布)");
Scanner sc=new Scanner(System.in);
int person=sc.nextInt();
int computer=(int)(Math.random()*3)+1;
String per="用戶";
String com = "電腦";
switch(person){
case 1:
per="剪刀";
break;
case 2:
per="石頭";
break;
case 3:
per="布";
break;
}
switch(computer){
case 1:
com="剪刀";
break;
case 2:
com="石頭";
break;
case 3:
com="布";
break;
}
if(person==1&&computer==