文件名称:CSZ
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:937byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
1. 一方出数字,另一方来猜这个数字
2. 出数字方要先想好一个没有重复数字的4位数作为目标数字(不能让猜数字方知道)
3. 猜数字方提供一个4位猜测数字
4. 出数字方要根据猜测数字和目标数字计算出几A几B,作为反馈提供给猜数字方
其中A前面的数字表示位置正确的数的个数,B前的数字表示数字正确但位置不正确的数的个数
如目标数字为“5234”,猜测数字为“5346”,则反馈是1A2B:“5”的数字和位置都正确,记为1A;“3”和“4”的数字正确但是位置错误,记为2B
5. 如猜测数字和目标数字完全相同(反馈为4A0B),则猜测成功,游戏结束
6. 如猜测数字和目标数字不一样(反馈中A的个数小于4),猜数字的一方要根据已有反馈信息,重复3~4步,直至猜出目标数字
7. 如猜数字方在限定次数内未猜出目标数字,则猜测失败,游戏结束
-1.A party out of the digital, the other to guess the number
2.The digital side would like a good first one did not repeat digits 4 digits as the target figure (can not let the guessing side to know)
3 Guessing provided by a 4 guess digital
. The digital side to guess figures and target figures calculated a few A few B as a feedback to guessing
Where A is in front of numbers indicate the location of the correct number of the number of figures before B, correct but incorrect location number that represents the number
Number
Such as target figures for "5234", guess the number "5346", the feedback is 1A2B: "5" the number and location are
Indeed, denoted by 1A "3" and 4 "figure is correct but the position error, denoted by 2B
5 guess figures and target figures are identical (feedback 4A0B), the speculation success, the game is over
6. Guess figures and target figures (the number of A s feedback is less than 4), guessing the party according to the existing feedback letter
In
2. 出数字方要先想好一个没有重复数字的4位数作为目标数字(不能让猜数字方知道)
3. 猜数字方提供一个4位猜测数字
4. 出数字方要根据猜测数字和目标数字计算出几A几B,作为反馈提供给猜数字方
其中A前面的数字表示位置正确的数的个数,B前的数字表示数字正确但位置不正确的数的个数
如目标数字为“5234”,猜测数字为“5346”,则反馈是1A2B:“5”的数字和位置都正确,记为1A;“3”和“4”的数字正确但是位置错误,记为2B
5. 如猜测数字和目标数字完全相同(反馈为4A0B),则猜测成功,游戏结束
6. 如猜测数字和目标数字不一样(反馈中A的个数小于4),猜数字的一方要根据已有反馈信息,重复3~4步,直至猜出目标数字
7. 如猜数字方在限定次数内未猜出目标数字,则猜测失败,游戏结束
-1.A party out of the digital, the other to guess the number
2.The digital side would like a good first one did not repeat digits 4 digits as the target figure (can not let the guessing side to know)
3 Guessing provided by a 4 guess digital
. The digital side to guess figures and target figures calculated a few A few B as a feedback to guessing
Where A is in front of numbers indicate the location of the correct number of the number of figures before B, correct but incorrect location number that represents the number
Number
Such as target figures for "5234", guess the number "5346", the feedback is 1A2B: "5" the number and location are
Indeed, denoted by 1A "3" and 4 "figure is correct but the position error, denoted by 2B
5 guess figures and target figures are identical (feedback 4A0B), the speculation success, the game is over
6. Guess figures and target figures (the number of A s feedback is less than 4), guessing the party according to the existing feedback letter
In
(系统自动生成,下载前可以参看下载内容)
下载文件列表
CSZ.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.