搜索资源列表
eightqueen
- 八皇后问题 【问题描述】 在一个8×8的国际象棋棋盘上放置8个皇后,要求每个皇后两两之间不“冲突”,即没有一个皇后能“吃掉”任何其他一个皇后,简单的说就是没有任何两个皇后占据棋盘上的同一行或同一列或同一对角线,即在每一横列、竖列、斜列都只有一个皇后。-Descr iption of the problem eight queens problem 【】 In an 8 × 8 chess board to place eight queens, requires that each
Eightempressesplay
- 八皇后是个古老而有趣的游戏,是由高斯于1850年首先提出的。 要求在国际象棋的棋盘上放置八个皇后,使其不能相互攻击,即任意两个皇后不能处于 棋盘的同一行、同一列和同一条对角线上。试问有多少种放法?-Eight Queen s is the oldest and interesting games, by Gauss in 1850 first proposed. Requirements in the international chess board to place eight of
magic
- 魔方阵,是把1~n*n个连续的正整数填到一个n*n的方阵中,使得每一行的和、每一列的和、以及两个对角线的和都相等。-Magic square, is to 1 ~ n* n consecutive positive integers into an n* n fill the square, making each row and each column and, as well as two diagonal and are equal.
8_Queens_Game
- 八皇后游戏的说明:问题的提出:八皇后是个古老而有趣的游戏,是由高斯于1850年首先提出的。 要求在国际象棋的棋盘上放置八个皇后,使其不能相互攻击,即任意两个皇后不能处于 棋盘的同一行、同一列和同一条对角线上。试问有多少种放法? 基本思想是:先把皇后放在(0,0)位置,然后把1号皇后放在(1,j)位置,使其满足要求。接着放2号皇后,依此类推。遇到某个皇后如把她无论放在该行的任意 位置均不满足要求,则前一个皇后放置不当,须重新放置前一皇后,如8个皇后均按要 求放置好,这就是一次成
Chess
- 简单易懂的编程思路! 棋盘游戏程序,人为一方,计算机为一方,人下时字符 * 将放在所指定的位置,而计算机下时字符 @ 将放在某一空格位置。行、列、或两对角线有连续三个相同字符一方为胜方,也有平局情况。能动态演示。-Straightforward programming ideas! Board game program, on the one computer on the one hand, people under the character* will be placed in the
Backgammon
- 五子棋是有两个人在一盘棋上进行对抗的竞技运动。在对局开始时,先由用户选择哪方先开局,先开局一方将一枚棋子落在一点上,然后由另一方在对方棋周围的交叉点上落子,如此轮流落子,直到某一方首先在棋盘的直线、横线或斜线上形成连续的五子则该方就算获胜。此时,算法结束。当有任何一方想退出时,都可在算法中实现。-Backgammon is a competitive sport confrontation of two people in a game of chess. At the beginning of
Five-Bead
- 在该游戏中,系统自动在空格中产生一定数量(如3个)各种颜色的彩球。游戏者设法将各种同颜色的彩球以横、竖、斜排的形式排列成一条线,连成五个以上便可得分,消除彩球越多则得分越高,若空格全部被充满则游戏结束。-In this game, the system automatically generates a certain amount in the space (eg 3) balls of various colors. Player managed to various balls of th
magic
- 魔方阵,即在1~n*n矩阵中输入整数,使得每一行、每一列以及对角线上的元素都相等~-Magic square, the input integer 1 ~ n* n matrix, so that each row, each column and diagonal elements are equal ~
n-queen
- 在n×n的棋盘上摆放n个皇后,使其不能互相攻击,即任意两个皇后都不能处于同一行、同一列或同一斜线上。-Placed on board nn n queens, it can not attack each other, that any two queen can not be on the same line, same column or diagonal.
TicTacToeGameWin
- 玩家可以设定电脑AI智能,并进行井子游戏。当一方横竖或斜线链接完成三个时,游戏则结束-Players can set the computer AI intelligent, and well child game. Horizontal, vertical or diagonal lines when one link to complete three, the game ends
Jingziqi_Java
- 通过检查每一行,每一列,每个对角线和反对角线实现井字棋游戏-By examining each row, each column and each diagonal and anti-diagonal realization Tic-tac-toe game
qiangshousilianhuan(DOS)
- 强手四连环 不知道您玩过四连环游戏吗,它和五子棋有点类似,不过只能从下往上放棋子,当同色棋子连成4个时(横、竖、斜均可)就获得胜利。 本游戏就是一个四连环,不过现在只支持两人对下,其中qiang.exe 是双方都用鼠标,而qiang2.exe为一方用鼠标,一方用键盘。注:本游戏非常简单,很多功能都没有完成,仅为自己娱乐之用。-Strong opponents four serial I do not know you ve played four serial
Magic-Square
- 幻方(Magic Square)是一种将数字安排在正方形格子中,使每行、列和对角线上的数字和都相等的方法。-Magic Quadrant (Magic Square) is a digital arranged in a square grid so that every row, column and diagonal digital and methods are equal.