CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - c B
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - c B - List
[
Other Riddle games
]
hannota70
DL : 0
总个数确定后,每张盘curDisk的移动方向maybe_To是确定的且唯一的:如共有三个盘时,盘1始终向左移动。 这里,将柱子由左向右看成A(源柱子Source),B(借助的柱子Borrow),C(目标柱子Target). A的左看成C,B的左看成A,C的左看成B; A的有看成B,B的右看成C,C的右看成A; 每张盘的移动方法(因为不可能连续两次移动相同的盘!): 一个盘curDisk现在在 柱子curStick上,那么curDisk另一个柱子(3个中除了2个的另1个) 只要有选择的选择一个柱子curStick,分析、判断其最上面的盘curDisk的能否向curDisk确定的唯一的方向移动;移动 完后 再 选择 另一个 柱子 分析 判断 就可以完成了 (这个算法特别适合于人玩这个“弱智”(我有同学这么说)游戏,我玩我的文曲星pc1000a上的Hanoi 9层游戏,需要5分钟就可以移动完毕)-total number identified, each set curDisk maybe_To direction of the movement of which is determined only : If there are three disk, was always left a mobile. Here, the columns from left to right as A (source pole Source), B (using the pole Borrow), C (target pole Target). A left as C, B to the left as A, C on the left as B; A as the B, B on the right side as C, the right as A; each set of mobile methods (as it is impossible for the same two mobile disk!) : a set curDisk curStick now on the pole, then curDisk another pole (three in addition to two other one), when given a choice, choose a pole curStick, analysis, judgment, the most above-curDisk curDisk the ability to determine the direction of the only mobile; mobile End choice after another pole analysis and judgment can be completed (thi
Date
: 2025-12-21
Size
: 2kb
User
:
彬
[
Other Riddle games
]
滚球
DL : 0
滚球游戏意智游戏 问题描述 有八个小洞,序号和分布位置如图。小球从A、B、C(即洞号0、1、2)三个位置之一滚下。如果洞的状态为0时,球向左滚;如果洞的状态为1时,球向右滚。凡是球滚过的洞,状态取反(既由1变0,由0变1)。 现用8位二进制数依次从左到右表示八个小洞的状态。 例: 图中的初始状态为 00000101 时,最多滚入3个球时有 从C洞滚入一小球状态为 ————> 00101111 从B洞滚入一小球状态为 ————> 01111011 从A洞滚入一小球状态为 ————> -bowls game Italy-game description eight holes and serial number and distribution figure. Small ball from the A, B, C (hole No. 0,1,2), one of the fallen three locations. If the state of the hole 0:00 a.m., the ball rolling left; If the state of the hole 1:00, the ball rolling right. Whatever strain at the hole, from the anti-state (both from a variable 0, 0 Variable 1). Now with eight followed by the binary number eight hole, said whatever the state. Cases : Figure the initial states of 00000101, three roll-up ball from C hole rolled over a small ball of----> 00101111 B hole rolled over from one state to the small ball----> 01111011 from A hole rolled over a small ball of---->
Date
: 2025-12-21
Size
: 34kb
User
:
轩哥哥
[
Other Riddle games
]
hexsud
DL : 0
Files presented: README.txt - This file. Plaintext documentation of my work. go - Shell Scripts for running the codes. cmds - Prolog commands used for executing the codes and generate output. hexsud.pl - Prolog codes for the 16x16 Sudoku solver. input - Hex sudoku input file from the hw assignment page. Because Prolog input is hard to deal with full-stop sign, the input file extension is eliminated. hexsud - Another testing Hex Sudoku input file.-Files presented : README.txt-This file. Plaintext documentati on of my work. go-Shell Scripts for running the c odes. cmds- Prolog used for executing commands the codes and generate output. hexsud.pl- Prol og codes for the 16x16 Sudoku solver. input-Hex sudoku input file hw assignment from the page. B ecause Prolog input is hard to deal with full-st op sign. the input file extension is eliminated. hexsud- Another testing Hex Sudoku input file.
Date
: 2025-12-21
Size
: 6kb
User
:
[
Other Riddle games
]
lcs
DL : 0
算法实现题 最长公共子序列问题 给定两个序列 X = { x1 , x2 , ... , xm } Y = { y1 , y2 , ... , yn } 求X和Y的一个最长公共子序列 举例 X = { a , b , c , b , d , a , b } Y = { b , d , c , a , b , a } 最长公共子序列为 LSC = { b , c , b , a }-Algorithm to achieve the longest common sub-title sequence of the problem given two sequences X = (x1, x2, ..., xm) Y = (y1, y2, ..., yn) for X and Y, a maximum common substructure sequence, for example X = (a, b, c, b, d, a, b) Y = (b, d, c, a, b, a) the longest common sub-sequence for LSC = (b, c, b, a )
Date
: 2025-12-21
Size
: 1kb
User
:
sanfy chen
[
Other Riddle games
]
gamebeginer
DL : 0
一个为国产手机设计的糖果排队小游戏,可以用在各种手机平台,也可以移植到虚拟机-A mobile designed for the domestic candy line up game, can be used in a variety of mobile platforms, but also can be transferred to the virtual machine
Date
: 2025-12-21
Size
: 7.03mb
User
:
黎明
[
Other Riddle games
]
hano
DL : 0
这是一个不利用递归实现汗诺塔的例子,让我们看看原来简单的 hanoi (n-1,a,c) hanoi (n,a,b) hanoi (n-1,c,b) 由于无法使用递归,需要什么样的手段才能实现。-This is a non-recursive implementation Khan, Tower of Hanoi example, let' s take a look at the original simple hanoi (n-1, a, c) hanoi (n, a, b) hanoi (n-1, c, b) can not be used because of recursion, what kind of means can be achieved.
Date
: 2025-12-21
Size
: 1kb
User
:
spencer
[
Other Riddle games
]
guessNum
DL : 0
猜数字游戏C语言代码 a,一个四位数,各位上的数字不重复,从1到9。 b,按以下提示猜出这个四位数。 c,每次猜测输入的数据给出类似的提示*A*B。 d,其中A前的*代表你本次猜对了多少个数字。 e,其中B前的*代表你本次猜对的数字并且位置正确的个数。 -Guessing game C language code a, a four-digit, you do not repeat the figures, from 1 to 9. b, the following tips to guess the four digits. c, given the input data for each guess a similar prompt* A* B. d, where A* to represent you before on this guess the number of digits. e, where B* represent you before on this guess the number and location of the correct number.
Date
: 2025-12-21
Size
: 1kb
User
:
LS
[
Other Riddle games
]
We-love-tang-poetry
DL : 0
a.功能:通过游戏来进行对唐诗的背诵 b.性能:由于是单人的游戏,所以对性能的要求为最低等级。 c.输出:输出为该用户对唐诗的熟悉度。 d. 输入:输入对用户通过鼠标键盘的操作来对游戏进行控制。 e. 基本的数据流程:操作得到熟练度然后存入数据库,数据库的添加删除。 f.安全与保密要求:由于是单人学习软件 所以安全度不高。 g.与软件相关的其他系统:操作系统。 -learning poem by play our gmae
Date
: 2025-12-21
Size
: 7.41mb
User
:
张万东
[
Other Riddle games
]
Turboc_RusaBoxGame2Player
DL : 0
使用TurboC编写的俄罗斯方块小游戏,对于初期学习C的同学非常有帮助,即使不能编译,你也可以借鉴其中的思路,这是双人版本-源语言: 中文 允许输入拉丁字符的拼音请键入文字或网站地址,或者上传文档。 取消 Shǐyòng TurboC biānxiě de èluósī fāng kuài xiǎo yóuxì, duìyú chūqí xuéxí C de tóngxué fēicháng yǒu bāngzhù, jíshǐ bu néng biānyì, nǐ yě kěyǐ jièjiàn qízhōng de sīlù, zhè shì shuāngrén bǎnběn中文(简体)英语日语Alpha The using TurboC written Tetris game, for students of early learning C, even if it does not compile, you can also learn from one of the ideas, this is a double version
Date
: 2025-12-21
Size
: 5kb
User
:
ln
[
Other Riddle games
]
使用C语言实现的21点
DL : 0
使用C语言实现的21点。 (1) 程序中一共有 13 张扑克牌可以随机抽取,大于 10 的点数计半点; (2) 高级玩家可以查看下一张牌,按 H 键,然后要求输入密码,密码正确可以看牌,并决定是否要牌;-BlackJack in C. (A) 13 cards can be randomly selected, card with more than 10 points counted as half jack (B) Press the H key, and then enter the correct password to be an advanced player who can see the next card, read the cards and decide whether to have it or not
Date
: 2013-08-01
Size
: 2kb
User
:
JoyeeCheung
[
Other Riddle games
]
eluosifangkuai
DL : 0
俄罗斯方块 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 #include <iostream> #include <stdlib.h> #include <windows.h> #include <time.h> #include <conio.h> using namespace std #define A1 0//A代表长条型,B为方块,C为L型,D为闪电型(实在无法描述那个形状) #define A2 1 #define B 2 #define C11 3 #define C12 4 #define C13 5 #define C14 6 #define C21 7 #define C22 8 #define C23 9 #define C24 10 #define D11 11 #define D12 12 #define D21 13 #define D22 14 /*typedef struct COORD { // coord. SHORT X // horizontal coordinate SHORT Y // vertical coordinate } COORD */ void SetPos(int i,int j)//设定光标位置 { COORD pos={i,j} HANDLE Out=GetStdHandle(STD_OUTPUT_HANDLE) SetConsoleCursorPosition(Out, pos) }-Tetris. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .# Include <iostream># Include <stdlib.h># Include <windows.h># Include <time.h># Include <conio.h> using namespace std # define A1 0// A representative of the long bar, B is a block, C is L-shaped, D is the Lightning (really can not describe the shape)# define A2 1# define B 2# define C11 3# define C12 4# define C13 5# define C14 6# define C21 7# define C22 8# define C23 9# define C24 10# define D11 11# define D12 12# define D21 13# define D22 14 /* typedef struct COORD {//coord SHORT X .// horizontal coordinate SHORT Y // vertical coordinate} COORD */void SetPos (int i, int j)// set the cursor position {COORD pos = {i, j} HANDLE Out = GetStdHandle (STD_OUTPUT_HANDLE) SetConsoleCursorPosition (Out, pos) }. . . .
Date
: 2025-12-21
Size
: 269kb
User
:
天河
[
Other Riddle games
]
lianliankan
DL : 0
1、主界面选择游戏运行环境 2、游戏按照一定规则实现相同图片相消,消除时有闪烁效果 3、游戏界面有重新开始、重新排列、计时、计分等功能 4、支持单机版游戏环境 a.有简单、复杂和困难三种等级的选择 b.时间限制 c.在规定时间内完成游戏,显示成功通关的模态对话框 5、支持网络版游戏环境 a.通过服务器与客户端的连接进行两人对决 b.有聊天功能 c.在规定时间内完成游戏,显示赢了对手的模态对话框,另一方则显示自己输了的对话框-1, the main interface, select Game 2 operating environment, according to certain rules of the game to achieve the same picture destructive, there are flickering effect when the elimination of 3, the game interface has restarted, rearrange, timing, meter grading function 4, supports a stand-alone version of the game environment There are simple, complex and difficult choice of three levels of b. time limit c. complete the game within the stipulated time, the successful clearance display a modal dialog box 5, the support network version of the game environment a. server connections with clients by conducting two man duel b. has chat c. complete the game within the stipulated time, the opponent wins the display modal dialog boxes, while the other displays a dialog lose yourself
Date
: 2025-12-21
Size
: 926kb
User
:
严颖
[
Other Riddle games
]
NG
DL : 0
猜数字游戏的简单C语言程序 电脑提供一个4位数字,并且每位数字互不相同。 玩家输入一个同类4位数字进行猜测。 电脑将根据玩家输入的数字显示XAXB。 A前面的数字代表数字正确位置也正确的数字的个数。 B前面的数字代表数字正确但是位置不正确的数字的个数。 每局游戏玩家有10次机会。猜中或机会用尽将游戏结束。 该程序简单实现了人机对战,双人对战。 编译器为DEVC++。-Guessing game simple C language program computer provides a four digit, and each digit different. Players enter a 4 digit guess similar. The digital computer displays XAXB players entered. A number in front of the correct position also represents a number of the number of correct numbers. B in front of the figure represents the number of digital correct position but incorrect numbers. Each game players have 10 chances. Guessed or opportunity to exhaust the game ends. The program is simple to achieve a man-machine war, double play. Compiler DEVC++
Date
: 2025-12-21
Size
: 1.41mb
User
:
Vic
[
Other Riddle games
]
Grasp-the-issue-of-traffic-accident
DL : 0
一辆卡车违反交通规则,撞人后逃跑。现场有三人目击该事件,但都没有记住车号,只记下车号的一些特征。甲说:牌照的前两位数字是相同的;乙说:牌照的后两位数字是相同的,但与前两位不同;丙是数学家,他说:四位的车号刚好是一个整数的平方。请根据以上线索求出车号。-A truck is in violation of traffic rules and fled after a collision. There are three people witnessed the incident, but did not remember the car number, just remember the car number of some features. A said: the first two digits of the license are the same B said: the two digits of the license is the same, but with the first two different C is a mathematician, he said: four car number just an integer The square. Please find the vehicle number according to the above line.
Date
: 2025-12-21
Size
: 18kb
User
:
胡雪宁
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.