搜索资源列表
电院五子棋(PLAEEI)
- 一款自主开发的五子棋程序,乃无禁手算法,为本人参加校挑战杯的作品,获三等奖。该程序棋力强劲,在QQ中的战绩目前为: 积分:43 赢:44 输:27 平:2 胜率:60% 曾和网上四五款无禁手的五子棋程序对弈,十盘中一般能胜七八盘!先手基本没负过! 采用了递归算法预测下一步,不过由于是为了应付学校的挑战杯,代码写的不是很规范,递归算法也不完美,之后由于学习时间很紧张,也没时间改进,今天把源代码公布出来,和大家一起学习探讨!大家可以自由使用我的代码,不过有点要求是,如果有人对程序中
汉诺塔游戏代码 v1.0
- 一个不用多说的游戏,是用递归算法思想的游戏,汉诺塔游戏,鼠标就拖动就可以玩。-one of the game is the use of recursive algorithm thinking of the game, HANOR games, a mouse drag it on and play.
FindPath_kinpoo
- 连连看 寻路算法 递归实现 /** * Author:郭剑波(KINPOO) * Last Modify:2005/11/21 13:40 * Purpose:find path for lian lian kan */-find their own path to achieve recursive algorithm / ** * Author : Jian (KINPOO) * Last Modify : 10/14/2005 13:40 * Purpose : fin
hitBall2
- 再来一个碰碰球小游戏!里面有两个关键的算法:迷宫算法外( findPath())和递归回搠的算法( SameBall() )-then fondled a ball game! There are two key algorithms : outside the maze algorithm (findPath ()) and recursive algorithm to daub (SameBall (
迷宫探路IV(递归算法)
- 迷宫探路IV(递归算法) -maze Pathfinder IV (recursive algorithm)
neweight
- 我的作业,TC2.0下实现图形编辑,用堆栈实现的,还有递归算法,如果需要请留言。-my operation, under WITH TC 2.0 graphics editing, using the stack to achieve, recursive algorithm, please leave if necessary.
OpenNineRing
- 解九连环:玩过九连环吗?知道九连环也是应用递归原理吗?该程序演示了利用递归算法解九连环的过程。-chain solutions 9 : played nine chain? Know that the chain is nine recursive application of the principle? Demonstration of the procedure used recursive algorithms for nine chain process.
QUEDIGUI
- 基于递归算法采用C语言实现了数据结构中经典的八皇后问题。-recursive algorithm based on the C language data structure of the classic Queen's eight problems.
用VC语言实现的汉罗塔
- 在程序启动时,用默认值生成塔类和碟子类的实例,并调用GDI对象绘图。当选择自动方式后,派生一个新线程递归挪动碟子并在每次挪动碟子后刷新图形。在挪动线程中,监测临界区对象作为暂停或继续的判别标志;当选择手动方式时,在碟子的移动过程中进行大碟子和小碟子的判断,如果合乎要求,允许移动,如果不合乎要求,跳出提示对话框。-commencement of the proceedings, with the default value generated tower and plate type exampl
qipan.rar
- 设计一个国际象棋的马踏棋盘的演示程序。以一二维数组Board[8][8]表示国际象棋棋盘,以用户输入任一位置作为马的起始位置,设为(i,j),其中0≤i,j≤7,马按照走棋的规则在棋盘范围内进行移动。本程序只求出一种遍历路径,用非递归程序实现吗的行走路线。,To design a chess board horse riding demo program. A two-dimensional array Board [8] [8] that the chess board to the user
battle-the-king-
- 决战独数王,九宫格,填数游戏,益智游戏,回溯递归算法-The number of battle the king alone, Jiugongge, puzzle, puzzle games, backward recursive algorithm
sudoku
- 用C++编写的数独游戏,采用回溯法,非递归,计算超快,代码精炼,注解详细-Using C++ Game Sudoku prepared using retrospective law, non-recursive calculation of ultrafast, code refining, detailed comments
1321_preblem_of_chess_board
- DP——棋盘问题,动态规划解决。递推的方式。注意结果的优化-DP- chessboard problem, dynamic programming solution. Recursive way. Note that the optimization results
knight
- 2、 写出6×6方阵的骑士周游的解。要求骑士的起跳位置是任意指定的。编制非递归程序,求出马的行走路线,并按求出的行走路线,将数字依次填入6×6的方阵中,并输出。 (骑士周游:从起始位置出发,按国际象棋马的走法,不重复地将所有区域恰好走一遍。) -2, write a 6 × 6 square Cavalier travel solution. Requirements of the take-off position Cavalier arbitrary specified. The p
house
- 马踏棋盘问题描述设计一个国际象棋的马踏遍棋盘的演示程序。2. 基本要求将马随机放在国际象棋8*8棋盘的某个方格中,马按走棋规则进行移动。编制非递归程序,求出马的行走路线,-Horse riding problem described in the design of a chessboard chess chessboard horse traveled demo program. 2. The basic requirements will be placed randomly MA 8* 8
eight_queen
- 八皇后问题,老归老,但试图用各种方法来实现求解,出乎意料的是,同样的算法,非递归实现的速度竟然比递归实现慢!-Eight queen problem, the old to the old, but trying to use various methods to achieve Solving Surprisingly, the same algorithm, the speed of non-recursive implementation was slower than the recur
Recursivemthodtogenerete2Dmaze
- 递归法生成2D迷宫,是想学习游戏编程的一个典型例子-Recursive method to generate 2D maze, want to study game programming are a typical example of
BaHuangHou
- 题目:八皇后问题。 八皇后问题是指求解如何在国际象棋8*8棋盘上无冲突的放置八个皇后棋子。因为在国际象棋里,皇后的移动方式是横竖交叉,所以在任意一个皇后所在的位置的水平,竖直和斜45度都不能有其他棋子的存在。一个完整的无冲突的八皇后棋子分布成为八皇后问题的一个解。设计思路:我使用了回溯的方法来解决八皇后问题,也就是逐次试探的方法。这个方法是通过函数putchess()对自身的递归调用来实现的。运行程序后,主函数调用putchess()函数在棋盘第一行第一列上放置棋子,开始向下一行递归。每一步
eight_queens_recursive
- its an eight queens recursive problem
mataqipan
- 将马随机放在国际象棋的8×8棋盘Board[0~7][0~7]的某个方格中,马按走棋规则进行移动。要求每个方格只进入一次,走遍棋盘上全部64个方格。编制非递归程序,求出马的行走路线,并按求出的行走路线,将数字1,2,…,64依次填入一个8×8的方阵,输出之 -Ma Random Chess on the 8 × 8 chessboard Board [0 ~ 7] [0 ~ 7] of a box, the horse moves in accordance with the rules o
