登录
首页 » Visual C++ » N-Queen

N-Queen

于 2012-08-31 发布 文件大小:2KB
0 165
下载积分: 1 下载次数: 4

代码说明:

  : N皇后问题,在一个N×N国际象棋盘 上,有N个皇后,每个皇后占一格;要求皇后间不会出现 相互“攻击”的现象,即不能有两个皇后处在同一行、同一 列或同一对角线上。问共有多少种不同的方法。下图以4 个皇后为例,说明一个正确的解( N是一个大于等于2并 且小于等于100的整数)(: N queens problem, a NN chess disk, N-Queen, Queen of the grid requirements between each other " attack" phenomenon does not appear in the Queen' s, that can not have two queens in the same row , the same column or on the diagonal. Asked a total of a number of different ways. The following diagram 4 Queen, for example, indicating that a correct solution (N is a number greater than or equal to 2 and less than or equal to an integer of 100))

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Net5-
    Net5 是一个支援网路连线的五子棋游戏,可以让你透过网路跟你的亲朋好友 来场五子棋大赛,不过Net5 并没有设计单人的模式,只能利用连线来玩。 (Net5 331 games is a support network connections, allowing you to through the Internet with your friends and family To field 331 contest, but Net5 and design of single mode, only the use of connection play.)
    2012-05-17 14:41:19下载
    积分:1
  • -the-poker-game
    本程序利用Card类数组模拟扑克牌,定义3个数组分别表示玩家手中的牌,电脑手中的牌和底牌,用srand((unsigned)time(NULL))产生随机数字,将底牌数组中随机的一项从底牌中移动到其他的数组中,模拟从洗好底牌中抓牌。表示出牌。 单人练习模式中,首先记下一个 1到13之间的随机数字,然后玩家抓牌,当手中的牌的点数恰与记下的随机数字相等,或用手中有的任意两张牌,通过加减乘除四则运算可以凑出该随机数字相等的点数,则停止抓牌并将这一张或两张出出去,随即记下一个新的随机数字,开始下一轮,直道手中的全部牌出完,游戏结束(This procedure using Card class array to simulate playing cards, the definition of the 3 arrays represent the game player cards, computer cards and cards, using srand ((unsigned) time (NULL)) to generate random numbers, random number in the array will be a move to the number of cards from other groups of cards, simulation from the wash hand in. Said. Single practice mode, first recorded random number between 1 to 13 next, and then the game player to draw cards, random number equal when the hand points exactly with the down, or in the hands of some arbitrary two cards, add, subtract, multiply and divide by four operations can make the random number equal points, then stop to draw a card and the card or two cards out, then write a new random number, start the next round, straight hands all the cards out, the end of the game)
    2013-08-19 15:13:48下载
    积分:1
  • C-language-games--gobang-code
    C语言游戏——五子棋,文中详细描述了五子棋游戏的设计规则,如何操作,而且有注释,可以简单明了的看懂操作(C language games- backgammon, backgammon paper describes in detail the design rules of the game, how to operate, and there are notes, you can understand straightforward operation)
    2013-08-15 09:23:21下载
    积分:1
  • VSCCP
    Very Simple Chinese Chess Program
    2011-10-14 00:17:02下载
    积分:1
  • XTG-Game-Five
    一个成熟的网上五子期代码,使用层次化开发,都为控件方式,可进行扩充.(a maturity period of five children online code, the use of level of development, to have control, can be expanded.)
    2007-03-23 15:08:14下载
    积分:1
  • win32wuziqi
    没有实现所功能 请大家多多指点 本来想实现网络对打,但水平有限(not achieve functional Please have a lot to the guidance of 2-network, but is limited)
    2006-05-18 17:16:02下载
    积分:1
  • Poker
    用socket 编写的够击.自定义了网络传输的规约,和发牌规则.(Socket prepared with enough hit. Since the definition of the network transmission of the Statute, and licensing rules.)
    2008-04-19 15:27:21下载
    积分:1
  • gobang
    最近做了个小游戏五子棋,两人对战类,是用VC,EasyX做的,在网上只能找到EasyX做的贪吃蛇,俄罗斯方块,没有五子棋,自己做了一个。我学C高级期末成绩就是做这个,可以显示出两人的思考时间,可以不断开局,主要是源代码大家可以学习一下..希望与大家多交流。(Easyx我也放在压缩包里了,自己安装一下)(Recently made a small game backgammon, two arcade, with VC, EasyX do, do online can only find EasyX Snake, Tetris, there is no backgammon, he had made one. I learned C high end performance is to do this, thinking they can show the time, you can continue to start, mainly to the source code you can learn more about .. hope we can communicate. (Easyx I put compression bag, and he installed it))
    2011-07-12 12:16:42下载
    积分:1
  • Chess_Easy
    基于Visual C++实现的局域网象棋游戏,Socket通信,多线程。(design the chess game by use Visual C++ , Socket technology, Mutil Thread.)
    2013-09-17 19:04:26下载
    积分:1
  • surakarta
    这是一个苏拉卡尔塔的程序 包括界面设计和后台代码(This is a program of Surakarta, including interface design and code-behind)
    2020-10-22 17:47:23下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 31今日下载