-
8queen
在一个8×8国际象棋盘上,有8个皇后,每个皇后占一格;要求皇后间不会出现相互"攻击"的现象,即不能有两个皇后处在同一行、同一列或同一对角线上。问共有多少种不同的方法。
本算法采用一维数组来进行处理。数组的下标i表示棋盘上的第i列,a[i]的值表示皇后在第i列所放的位置。如:a[1]=5,表示在棋盘的第一例的第五行放一个皇后。(8 × 8 in a chess set, there s eight, each accounting for a Queen s grid request will not be any mutual between Queen s attack phenomenon, that can not have two Queen s in the same line, the same row or the same diagonal. Asked the total number of different ways. This algorithm uses one-dimensional array to be processed. Array subscript i said i chessboard first out, a [i] value that s in the first place i listed by location. Such as: a [1] = 5, said the first cases in the chessboard of the fifth line of a Queen s release.)
- 2007-12-15 22:24:44下载
- 积分:1
-
tmp
编写一个模拟人工洗牌的程序,将洗好的牌分别发给四个人。
使用结构card 来描述一张牌,用随机函数来模拟人工洗牌的过程,最后将洗好的52张牌顺序分别发给四个人。
对每个人的牌要按桥牌的规则输出。即一个人的牌要先按牌的花色(顺序为梅花、方块、红心和黑桃)进行分类,同一类的牌要再按A、K、Q、J、…、3、2牌的大小顺序排列。另发牌应按四个人的顺序依次分发。(Write a simulation program manual shuffle, the cards were sent to wash a good four. Card use to describe the structure of a card, with the random function to simulate the manual process of shuffling, and finally wash the good order of 52 cards were issued to four people. Cards for each person according to the rules of bridge output. That is, a person' s license have to press the card suit (in order of clubs, diamonds, hearts and spades) classification, the same type of licenses to press A, K, Q, J, ..., 3,2 card the size of the order. The other four licensing the order should be distributed.)
- 2011-11-30 13:15:30下载
- 积分:1
-
20dianyouxi
20点小游戏,学会它可以让你在朋友前炫耀一下。(this case is a 20-point game, learn which will allow you to show off at a friend s before)
- 2012-02-17 22:19:38下载
- 积分:1
-
gnuchess-5.07
一款国际象棋的C++源代码,可以实现人机对战,而且AI的棋力不错(A chess in C++ source code, can achieve man-machine Battle, and a good AI' s Qi Li)
- 2009-12-11 18:08:34下载
- 积分:1
-
source-code-VC-P-P-Othello
说明: 带背景音乐的VC++黑白棋源代码,程序简单又娱乐(With background sound source code VC++ Othello)
- 2011-03-13 18:32:24下载
- 积分:1
-
Gobang
JAVA网络五子棋游戏源代码 含所有资源(JAVA network Gobang game source code)
- 2012-11-02 08:57:45下载
- 积分: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
-
ChineseChess(源码)
Chinese chess development cases, idle, reproduced the beginning of chess cases, for reference only, such as infringement deleted at any time
- 2019-03-13 00:06:50下载
- 积分:1
-
sddd
中国象棋Java实现代码,没有完成,可以继续开发.(Left shift)
- 2009-04-04 16:24:29下载
- 积分:1
-
shoujixiangqi
说明: 象棋手机游戏部分源码
象棋手机游戏部分源码(Chess mobile phone game chess game part of part of source code)
- 2008-09-19 11:02:37下载
- 积分:1