文件名称:eight
- 所属分类:
- 棋牌游戏
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 196kb
- 下载次数:
- 0次
- 提 供 者:
- z**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
该问题是 19 世纪著名的数学家高斯 1850 年提出的。八皇后问题要求在一个8 × 8 的 棋盘上放上8个皇后,使得每一个皇后既攻击不到另外 7 个皇后,也不被另外 7 个皇后所攻击。 按照国际象棋的规则, 一个皇后可以攻击与之处在同一行或同一列或同一斜线上的其他任何棋子。 因此, 八皇后问题等于要求 8 个皇后中的任意两个不能被放在同一行或同一列或同一斜线上。 该代码为解决此问题的代码-The problem is that the famous 19th century mathematician Gauss 1850 s. Eight queens problem requires a 8 × 8 chessboard
Put 8 on the Queen, so that each queen attacks both less than seven other queen, nor queen was attacked by the other seven. Press
According to the rules of chess, a queen can attack with them in the same row or column or any other on the same diagonal pieces.
Therefore, the eight queens problem is tantamount to asking eight in any two of the Queen can not be on the same row or same column or the same diagonal.
The code for the code to solve this problem
Put 8 on the Queen, so that each queen attacks both less than seven other queen, nor queen was attacked by the other seven. Press
According to the rules of chess, a queen can attack with them in the same row or column or any other on the same diagonal pieces.
Therefore, the eight queens problem is tantamount to asking eight in any two of the Queen can not be on the same row or same column or the same diagonal.
The code for the code to solve this problem
(系统自动生成,下载前可以参看下载内容)
下载文件列表
八皇后
......\888.cpp
......\Debug
......\.....\888.obj
......\.....\vc60.idb
......\.....\vc60.pdb
......\.....\八皇后.exe
......\.....\八皇后.ilk
......\.....\八皇后.pch
......\.....\八皇后.pdb
......\八皇后.dsp
......\八皇后.dsw
......\八皇后.ncb
......\八皇后.opt
......\八皇后.plg
......\888.cpp
......\Debug
......\.....\888.obj
......\.....\vc60.idb
......\.....\vc60.pdb
......\.....\八皇后.exe
......\.....\八皇后.ilk
......\.....\八皇后.pch
......\.....\八皇后.pdb
......\八皇后.dsp
......\八皇后.dsw
......\八皇后.ncb
......\八皇后.opt
......\八皇后.plg