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

N-Queen

于 2012-08-31 发布 文件大小:2KB
0 190
下载积分: 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 个回复

  • wuziqi
    控制台编的五子棋游戏,用的贪心算法,AI不算太高,但希望对像我一样菜的同学有所启发……(Console compiled 331 games, with the greedy algorithm)
    2011-10-29 19:07:00下载
    积分:1
  • gobangCPP
    C++五子棋代码,有详细的算法注释,代AI算法...可直接运行(C++ gobang game code-with AI。it can work directly)
    2012-07-01 18:32:24下载
    积分:1
  • draw
    一款五子棋游戏,可以实现人机交互,有打开、保存、反悔、输赢等功能(A 331 game, the human-computer interaction, there are open, save, go back, win or lose)
    2012-06-27 23:59:55下载
    积分:1
  • 这是一个用VC写的五子人机对战程序
    这是一个用VC写的五子棋人机对战程序(This is a VC was the man-machine players 331 procedures)
    2005-01-17 00:20:25下载
    积分:1
  • 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
  • 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
    简易的中国象棋游戏,用VC++.net编程(Chinese chess)
    2013-03-11 08:43:04下载
    积分:1
  • three
    这个包括头文件,以及具体的实现函数(This is a chess game, three sons and a chess game, I hope you all like.)
    2012-02-22 18:34:16下载
    积分: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
  • 85646465467
    VB语言写的扑克牌电脑魔术——读懂你的心源代码.(VB language to write the poker magic computer- read your source code.)
    2013-08-09 11:36:59下载
    积分:1
  • 696518资源总数
  • 104617会员总数
  • 12今日下载