石头剪子布源码

上传:gtcaj 浏览: 33 推荐: 0 文件:JAVA 大小:1022B 上传时间:2019-08-01 20:20:47 版权申诉
石头剪子布Scannerin=newScanner(System.in);System.out.println("----猜拳游戏----");System.out.println("请出拳(1.剪刀2.石头3.布)");intperson=in.nextInt();intcomputer=(int)(Math.random()*3)+1;StringMarks="拳头";//这是做一个标记;StringMarks2="拳头";switch(person){case1:
上传资源
用户评论