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

猜数字游戏

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

代码说明:

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

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

发表评论

0 个回复

  • Czhihen
    关于C语言的一些指针的处理算法,能够使得初学者对C语言指针有自己的了解(Some pointers on C language processing algorithms, it is possible to make a beginner C language pointer has its own understanding)
    2016-06-17 11:29:59下载
    积分:1
  • 写汉字液晶子程 液晶屏分为4行*12列汉字,全部使用模拟接口方式。
    /*写汉字液晶子程 液晶屏分为4行*12列汉字,全部使用模拟接口方式。 /*   TGLCMLIMIT64A接口程序(模拟方式) ;连线图: ;*LCM---89C52*  *LCM---89C52*   *LCM-------89C52*     *LCM---------- 89C52* * ;*DB0---P0.0*   *DB4---P0.4*    *D/I-------P2.6*      *CS1---------- P2.4*  * ;*DB1---P0.1*   *DB5---P0.5*    *R/W-------P2.7*      *CS2---------- P2.5*  * ;*DB2---P0.2*   *DB6---P0.6*    *RST--------VCC*      *CS3---------- P3.2*  * ;*DB3---P0.3*   *DB7---P0.7*    *E---------P2.3*                           * ;注:89C52的  
    2022-03-25 01:26:14下载
    积分:1
  • MatchLSM
    1.打开左右两张影像2.Harris算法提取同名点3.显示提取同名点(若要进行下一步匹配则不建议显示,这里只是用于查看是否提取出)4.相关系数匹配(只在找出的同名点内匹配)5.LSM最小二乘匹配(先进行粗匹配,再精匹配)(1 Open the left and right images 2.Harris algorithm to extract two tie points 3 shows the extraction of corresponding points (not recommended to proceed to the next match show, here is used to see if extracted) 4. Correlation coefficient matching (just looking match within a point of the same name) 5.LSM least squares matching (rough first match, then fine match))
    2013-08-28 15:45:57下载
    积分:1
  • 最短路径C语言算法
    本是代码是有向图中任意两点间经过指定节点的最短路径算法
    2022-08-16 05:49:09下载
    积分:1
  • ASPNET4ArcGISServer
    ASPNET4ArcGISServer For Programers
    2018-11-10 05:27:41下载
    积分:1
  • OPC_for_PHP
    说明:  PHP网页的后台OPC客户端通信,实现对PLC数据的读取展示(Background OPC Client Communication of PHP Web Page to Realize Reading and Displaying of PLC Data)
    2020-06-16 08:40:01下载
    积分:1
  • DCTJPEG
    blkproc.m,DCHuffmanEncoding.m,ACHuffmanEncoding.m,zigzag.m,PSNR.m, 对灰度图像进行DCT变换,量化,ZigZag扫描,Huffman编解码,反量化,反DCT变换而重建图像。 其中,blkproc.m为分块DCT变换函数; DCHuffmanEncoding.m,ACHuffmanEncoding.m分别为DC和AC变换系数的Huffman码表函数; zigzag.m为ZigZag扫描函数;PSNR.m为求图像峰值信噪比函数。 Copyright 2008 Reserved @ Wang Chengyou @ Tianjin University, P.R.China. (This function tests the DCTJPEG codec)
    2013-03-24 12:06:34下载
    积分:1
  • DarkShell
    DarkShell是一套远程控制DDOS攻击程序(VC++)(DarkShell DDOS attack is a remote control program (VC++))
    2011-09-19 09:31:59下载
    积分:1
  • Otsu image processing
    利用大津算法对图片进行处理,得到满意的处理效果。(The image is processed by Otsu algorithm and satisfactory results are obtained.)
    2019-04-12 15:45:15下载
    积分:1
  • LuaPlus_Test
    Lua测试工具源码,自己写的东西。希望能有点用处。(Lua source code testing tools, their own writing. Hope to be of some use.)
    2010-06-05 19:16:30下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载