文件名称:PaperScissorsRock
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- Br***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
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