文件名称:PaperScissorsRock
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:912byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Firstly,
If the user input is 0,the program will print “Player picks paper”.
If the user input is 1,the program will print “Player picks scissors”.
If the user input is 2,the program will print “Player picks rock”.
Secondly,
If the randomly generated integer is 0,the program will print “Computer picks paper”.
If the randomly generated integer is 1,the program will print “Computer picks scissors”.
If the randomly generated integer is 2,the program will print “Computer picks rock”.
Finally,
The program will determine and output the winner of the game. To do so, the following
rules are applied:
1. Rock beats scissors (i.e. 2 beats 1)
2. Scissors beats paper (i.e. 1 beats 0)
3. Paper beats rock (i.e. 0 beats 2)
4. If the choice picked by the user and
computer are the same, game draws.
If computer wins,the program will print “Computer Wins”.
If user wins,the program will print “Player wins”.
If game is drawn,the program will print “Draw”.-Firstly,
If the user input is 0,the program will print “Player picks paper”.
If the user input is 1,the program will print “Player picks scissors”.
If the user input is 2,the program will print “Player picks rock”.
Secondly,
If the randomly generated integer is 0,the program will print “Computer picks paper”.
If the randomly generated integer is 1,the program will print “Computer picks scissors”.
If the randomly generated integer is 2,the program will print “Computer picks rock”.
Finally,
The program will determine and output the winner of the game. To do so, the following
rules are applied:
1. Rock beats scissors (i.e. 2 beats 1)
2. Scissors beats paper (i.e. 1 beats 0)
3. Paper beats rock (i.e. 0 beats 2)
4. If the choice picked by the user and
computer are the same, game draws.
If computer wins,the program will print “Computer Wins”.
If user wins,the program will print “Player wins”.
If game is drawn,the program will print “Draw”.
If the user input is 0,the program will print “Player picks paper”.
If the user input is 1,the program will print “Player picks scissors”.
If the user input is 2,the program will print “Player picks rock”.
Secondly,
If the randomly generated integer is 0,the program will print “Computer picks paper”.
If the randomly generated integer is 1,the program will print “Computer picks scissors”.
If the randomly generated integer is 2,the program will print “Computer picks rock”.
Finally,
The program will determine and output the winner of the game. To do so, the following
rules are applied:
1. Rock beats scissors (i.e. 2 beats 1)
2. Scissors beats paper (i.e. 1 beats 0)
3. Paper beats rock (i.e. 0 beats 2)
4. If the choice picked by the user and
computer are the same, game draws.
If computer wins,the program will print “Computer Wins”.
If user wins,the program will print “Player wins”.
If game is drawn,the program will print “Draw”.-Firstly,
If the user input is 0,the program will print “Player picks paper”.
If the user input is 1,the program will print “Player picks scissors”.
If the user input is 2,the program will print “Player picks rock”.
Secondly,
If the randomly generated integer is 0,the program will print “Computer picks paper”.
If the randomly generated integer is 1,the program will print “Computer picks scissors”.
If the randomly generated integer is 2,the program will print “Computer picks rock”.
Finally,
The program will determine and output the winner of the game. To do so, the following
rules are applied:
1. Rock beats scissors (i.e. 2 beats 1)
2. Scissors beats paper (i.e. 1 beats 0)
3. Paper beats rock (i.e. 0 beats 2)
4. If the choice picked by the user and
computer are the same, game draws.
If computer wins,the program will print “Computer Wins”.
If user wins,the program will print “Player wins”.
If game is drawn,the program will print “Draw”.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
PaperScissorsRock.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.