搜索资源列表
mataqipang
- 用数据结构(C语言版)编写程序,实现一个国际象棋的马踏遍棋盘的演示程序。具体要求为:将马随机放在国际象棋的8*8棋盘的某个方格中,马按走棋规则进行移动。要求每个方格只进入一次,走遍棋盘上全部64个方格。用堆栈编制非递归程序求出马的行走路线,并按求出的行走路线,将数字1,2,3,……,64依次填入一个8*8的方阵,输出之。 -With the data structure (C language version) to write programs to achieve a chess board
deformity_chessboard
- 这个文件夹包含了残缺棋盘游戏问题的源代码,可执行文件和上级报告。-It contains all needed documents for the problem of deformity chessboard.
qi_pan
- 用C++语言编写的残缺棋盘问题的分治法源代码,很完整,可直接编译运行。-Using C++ language problems and incomplete chessboard divide and conquer the source code, it is complete, can be directly compiled to run.
28
- 五子棋模拟。以数字0表示空棋盘,以其他数字表示以下的棋子的位置,以A,B表示两个游戏者,游戏者可以通过输入棋子坐标指明落子位置,若干步后,程序会判断游戏结果并输出。-Gobang simulation. To the number 0 indicates an empty chessboard, with other numbers indicate the location of the following pieces, to A, B, said two players, players
mataqipan
- 利用回溯法+贪心算法实现马踏棋盘功能。具体描述:有一M*N的棋盘,输入马所在的起始位置,输出马走过的全部路径。(马走过棋盘上每一个点)-The use of backtracking greedy algorithm+ horse riding board features. Specific descr iption: There is an M* N chessboard, enter the horse where the starting position, the output of
mataqipan
- 设计一个国际象棋的马踏遍棋盘的演示程序。 将马随机放在国际象棋的8×8棋盘Board[8][8]的某个方格中,马按走棋规则(见题集p98)进行移动。要求每个方格只进入一次,走边棋盘上全部64个方格。编制非递归程序,求出马的行走路线,并按求出的行走路线,将数字1,2,3,…,64依次填入一个8×8的方阵,输出之。 -To design a chess board horse travels to the demonstration program. The horses were rand
canqueqipanwenti
- 残缺棋盘(defective chessboard)是一个有2k×2k个方格的棋盘,其中恰有一个方格残缺。图1给出k≤2时各种可能的残缺棋盘,其中残缺的方格用阴影表示。注意当k=0时,仅存在一种可能的残缺棋盘。事实上,对于任意k,恰好存在22k种不同的残缺棋盘。用分而治之方法可以很好地解决残缺棋盘问题。-Incomplete board (defective chessboard) is a 2k × 2k a chessboard squares, of which there is exac
tanshishe
- 这是一个讲解用c语言编写的文章。使用棋盘法的贪吃蛇c代码-This is a talk with the c language articles. Snake using the chessboard method c code
chessboard
- 改进后的棋盘覆盖问题的过程,简化了操作,简单易懂-The improved coverage of the process of the board, simplifying the operation, easy to understand
DefectiveChessboard
- 使用vc++中的MFC编制的残缺棋盘程序,完整的工程代码-Defective chessboard program using vc++ in MFC ,complete engineering codes included
8queen
- 本程序显示出的结果为国际象棋棋盘上上八个皇后不能在同一条直线或者斜线排法-This program shows the results of the eight chess queen on the chessboard can not be in the same straight line or diagonal row of France
console
- 象棋马的hamilton回路算法程序,用Visual studio 2005开发运行,控制台应用程序。当m,n<24时结果正确;m,n>24时有些问题。-the hamilton problem of the horse on chessboard,based on Visual C++.
Hamilton
- 8*8 的国际象棋棋盘上的一只马,恰好走过除起点外的其它 63 个位置各一次,最后回 到起点。这条路线称为一条马的 Hamilton 周游路线。对于给定的 m*n 的国际象棋棋盘,m 和n均为大于5的偶数,且|m-n|≤2,试设计一个分治算法找出一条马的Hamilton周游路线。 编程任务: 对于给定的偶数m,n≥6,且|m-n|≤2,编程计算 m*n 的国际象棋棋盘一条马的Hamilton 周游路线。 Input 输入数据的第一行有2
3364
- POJ 第3364题Black and white painting_棋盘 数学问题-POJ first 3364 title Black and white painting_ chessboard mathematics problem
chess
- 用c++实现的残缺棋盘完整源代码以及能够运行的可执行程序-C++ implementation with incomplete chessboard complete source code and executable programs to run
ChessBoard
- 磁盘覆盖算法的一个联系,学习算法分析时做的小程序,分享了-Disk covering algorithm for a contact, learning algorithm analysis do small procedures, share
FiveStone
- 五子棋游戏 在一个N * N的棋盘上,任意同色的棋子在某一方向连续排列5个的一方赢得游戏。 【功能提示】 (1) 可以人机对战。 (2) 可以双人对战 (3) 可以设置单步超时(例如超时者视为放弃当歩操作的权利,或者程序随机替游戏者下一子) (4) 基于局域网的网络对战版(可选) 其它功能可自行扩展。 -Backgammon game in a N* N chessboard, any pieces the same color arranged in a row i
fzq
- 传统五子棋的棋子分为黑白两色,采用19×19棋盘,棋子放置于棋盘线交叉点上。两人对局,各执一色,轮流下一子,先将横、竖或斜线的5个或5个以上同色棋子连成不间断的一排者为胜。 -Gobang the piece is divided into the traditional black and white, with 19 × 19 chessboard, the pieces placed on the board line intersection. Both the bureau, a
chessboard
- 棋盘覆盖问题,采用C++编写,简洁易懂,希望各位读者喜欢-Board cover problem, using C++ written, simple to understand, I hope you readers like
8huanghouwenti
- 在一个8×8的棋盘里放置8个皇后,要求每个皇后两两之间不相"冲"-In an 8 × 8 chessboard in place eight queens, requires each inconsistent between Queen 22 " red"