登录
首页 » c++ » 猜数字游戏

猜数字游戏

于 2022-02-15 发布 文件大小:18.66 MB
0 85
下载积分: 2 下载次数: 1

代码说明:

猜数字游戏(又称Bull and Cows)是一种大概于20世纪中期兴起英国的益智类小游戏。    游戏规则为:参与游戏的两方,一方出数字,另一方猜数字,出数字的人要想好一个没有重复数字的4位数,不能让猜的一方知道,猜的一方进行猜数字,每猜一个数字,出数的一方根据猜的数字给出几A几B,其中A前面的数字表示位置和数字都正确的个数,而B前面的数字表示数字正确但位置不对的数的个数。  例如:出数的一方给的是5346,猜数字的一方猜的数字为5238,则出数的一方根据猜的一方给出1A1B,其中5的位置和数字都正确,即为1A,而3的位置不对但有这个数字,即为1B,合起来就是1A1B。    接着,猜数字的一方根据出数字的一方给出的几A几B继续猜,直到猜中为止(即4A0B)。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • MRF_imgSeg
    有指导的马尔可夫随机场(MRF)的图像分割代码,是有指导的方式(即用鼠标框出分类样本区域)。采用OpenCV编写。(Has guided Markov Random Field (MRF) image segmentation code, is guiding the way (that is, a classification of the box with the mouse sample region). Prepared using OpenCV.)
    2008-07-23 15:41:34下载
    积分:1
  • AD620-application
    常用的AD620的介绍和说明,有较为详细的应用说明,配置方式,上手快(AD620 common introduction and description, a more detailed application instructions, configuration, quick)
    2014-05-15 09:24:51下载
    积分:1
  • 单片机C语言程序设计实训100例
    单片机C语言程序以及全程学习用资料,可以参考,相关程序。(MCU learning procedures, are some examples of procedures, may be used for reference,)
    2017-07-26 12:06:17下载
    积分:1
  • simple53
    说明:  LeGall(5,3)小波滤波器,其计算复杂度小、存储开销低、压缩效率高,已被JPEG2000标准采用。提升小波实例c语言实现(Lifting Wavelet Example C Language Implementation)
    2019-06-15 12:16:39下载
    积分:1
  • FormViewDemo
    在窗体视图(CFormView)中使用控件,VC++精选学习编程源码,很好的参考资料。(In form view (CFormView) using controls, select learning VC++ programming source code, a good reference.)
    2013-11-26 18:16:41下载
    积分:1
  • 是算符优先分析算法 通过编译并且已经运行
    是算符优先分析算法 通过编译并且已经运行-priority is the operator through the analysis algorithm has been compiled and run
    2022-05-31 01:06:08下载
    积分:1
  • quartus
    此为quautus教程,请各位仔细去看吧,有不懂的和我联系(This is quautus tutorial, please look at it carefully, and I do not have contact)
    2008-01-31 15:39:00下载
    积分:1
  • LED
    89C52单片机入门学习制作流水灯实验,P1口控制发光管,(89C52 microcontroller learning portal making light water experiments, P1 port control light-emitting tube)
    2013-03-29 13:25:11下载
    积分:1
  • 电容触控芯片GT911 Datasheet_20130827(德沃尔)
    说明:  GT911是汇顶科技支持3.5-8寸的一颗触摸IC(GT911 is a 3.5-8 Inch Touch IC supported by GOODIX Technology)
    2020-06-18 11:00:01下载
    积分:1
  • D3D
    实现3D游戏中的一些基本功能.例如:摄像机的控制,人物的行走、跳跃,人物与场景的的碰撞,还有一些打怪的基本数据计算,还有一些特效(HLSL)等。(3D games to achieve some of the basic features. For example: camera control, character walking, jumping, the characters and the scene of the collision, there are some basic data Daguai calculations, there are some special effects (HLSL) and so on.)
    2020-07-04 04:00:01下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载