资 源 简 介
c语言做的猜数字游戏,这个游戏的规则比较简单,一般两个人玩,一方出数字,一方猜。出数字的人要想好一个没有重复数字的4位数,不能让猜得人知道。猜的人就可以开始猜。每猜一个数字,出数者就要根据这个数字给出几A几B,其中A前面的数字表示位置正确的数的个数,而B前的数字表示数字正确而位置不对的数的个数。
-c language to number guessing game, the rules of the game is relatively simple, general two people to play, one out of numbers, one guess. To a good number of people out of a 4-digit number does not repeat not be allowed to guess one knows. Guess people can start guessing. Each guess a number, a number of those who should according to this figure gives a few A few B, where A numerical position in front of the number of correct number, while the B before the numbers indicate the number of correct and incorrect number of locations the number of .