文件名称:SmallGame
介绍说明--下载内容均来自于网络,请自行研究使用
程序运行后,产生一个[0,100]之间的随机数,提示并接收用户从键盘输入的猜测值,返回比较信息(偏大或偏小),直至用户猜对为止,显示总的猜测次数。每次游戏结束时提示用户是否重新开始,根据用户输入确定重新开始或退出程序。将程序运行的最好记录(TOP1,成功猜测所用次数最少)的玩家信息登记到记录文件中,并适时更新。
-The program is running, resulting in a random number between [0,100], prompt, and guess the value of receiving user input from the keyboard to return to the comparative information (large or small), until you guess right so far, showing the total number of speculation . Prompt the user whether to restart at the end of each game, based on user input to determine the re-start or exit the program. The best record of the program is running (TOP1, successful speculation that use the least number of) players registered to the log file, and updated in a timely manner.
-The program is running, resulting in a random number between [0,100], prompt, and guess the value of receiving user input from the keyboard to return to the comparative information (large or small), until you guess right so far, showing the total number of speculation . Prompt the user whether to restart at the end of each game, based on user input to determine the re-start or exit the program. The best record of the program is running (TOP1, successful speculation that use the least number of) players registered to the log file, and updated in a timely manner.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TopRecord.txt
SmallGame.java
SmallGame.java