文件名称:GuessNumberGame
-
所属分类:
- 标签属性:
- 上传时间:2013-04-29
-
文件大小:978byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
每次游戏程序随机产生一个0-9之间的整数,要求玩家输入自己猜的数字,并对用户输入数字进行检查,进行如下提示:
如果用户猜对了,则提示:恭喜你,猜对了。结束本次游戏。
如果用户猜错了,则提示:你猜的数字太(大或小)了。要求用户继续猜。
如果连续3次没有猜对,则提示:游戏失败。
一次游戏结束时,提示用户是否继续新的游戏,果用户选择继续,则开始新一次游戏,否则输出:你共进行了XXX次游戏,成功XXX次,失败XXX次。然后结束程序运行。
提交要求:打包为可以执行的JAR文档,其中要包含源程序文件。-Each game program randomly generated integer between 0-9 players enter their own guess is, and lets users enter numbers to be checked, the following prompt: If you guess right, you are prompted: Congratulations on your guess the. The end of the game. If you guess wrong Tip: Your guess is too (large or small). Require the user to keep guessing. Three times in a row did not guess, you are prompted: Game failed. The end of a game that prompts the user whether to continue the game, if the user choose to continue, start a new game, otherwise the output: XXX game, success XXX times failed XXX. And then end the program. Submission Requirements: packaged as can be performed JAR document, which contains the source file.
如果用户猜对了,则提示:恭喜你,猜对了。结束本次游戏。
如果用户猜错了,则提示:你猜的数字太(大或小)了。要求用户继续猜。
如果连续3次没有猜对,则提示:游戏失败。
一次游戏结束时,提示用户是否继续新的游戏,果用户选择继续,则开始新一次游戏,否则输出:你共进行了XXX次游戏,成功XXX次,失败XXX次。然后结束程序运行。
提交要求:打包为可以执行的JAR文档,其中要包含源程序文件。-Each game program randomly generated integer between 0-9 players enter their own guess is, and lets users enter numbers to be checked, the following prompt: If you guess right, you are prompted: Congratulations on your guess the. The end of the game. If you guess wrong Tip: Your guess is too (large or small). Require the user to keep guessing. Three times in a row did not guess, you are prompted: Game failed. The end of a game that prompts the user whether to continue the game, if the user choose to continue, start a new game, otherwise the output: XXX game, success XXX times failed XXX. And then end the program. Submission Requirements: packaged as can be performed JAR document, which contains the source file.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
GuessNumberGame.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.