搜索资源列表
BaHuangHou
- 题目:八皇后问题。 八皇后问题是指求解如何在国际象棋8*8棋盘上无冲突的放置八个皇后棋子。因为在国际象棋里,皇后的移动方式是横竖交叉,所以在任意一个皇后所在的位置的水平,竖直和斜45度都不能有其他棋子的存在。一个完整的无冲突的八皇后棋子分布成为八皇后问题的一个解。设计思路:我使用了回溯的方法来解决八皇后问题,也就是逐次试探的方法。这个方法是通过函数putchess()对自身的递归调用来实现的。运行程序后,主函数调用putchess()函数在棋盘第一行第一列上放置棋子,开始向下一行递归。每一步
EightQueensProblem
- 在8*8的国际象棋盘上放置八个皇后,使其不能互相攻击,用递归法求出所有布局-8* 8 placed on the international chess board eight queens, so that it can not attack each other, all the layout obtained by recursion
chinachess
- 自己编写的中国象棋。c语言编写。通过枚举法,遍历一定深度中的所有情况,递归深度可以在代码中修改。没有棋盘的库,每步均为即时计算所得。-I have written in Chinese chess. c language. By enumeration, traversing a certain depth in all cases, recursion depth can be modified in the code. No library board, each step are calc
WuZiQi
- 本人原创的五子棋游戏,算法很独特,没有采用递归就达到了不错的结果。-My original backgammon game, the algorithm is unique, does not use recursion to achieve good results.
Fujida
- 使用负极大算法实现黑白棋的对弈,中间使用递归,底层用MFC搭建。-Using negative great algorithm black white s play chess, and the middle use recursion, bottom with MFC structures.