搜索资源列表
CmyFive
- C下实现的五子棋(非双人对下)。 光标的动态显示:采用setwritemode(1)函数,光标移动时在原位置再画一次,从而起到擦除原光标的效果。 判胜负的函数设计:为仅检验落子处的横、竖、斜三方向的胜负,节省了大量编程时间,并使运行效率大大提高。 游戏开始画面:本拟采用直接用程序画的方式,但效果不好。于是采用bmp图像显示方式,使开始画面更为美观。-under the C (121-under double right). Cursor dynamic display :
fifth xiangqi
- 我自己写的一个想在网络上联机下象棋的代码。这个估计是只有我才有吧。。嘻嘻,应该是个唯一的东东了。-I want to write an on-line network in chess under the code. This estimate is that only I can have it. . Hee hee, should be only the vertical.
jingziyouxi
- 游戏规则如下: 棋盘为3*3各方格。双方各三颗棋子。 开始时轮流想方格里放棋子。放完后轮流走棋(只能横走或直走)。 若某方三颗棋子排成直线(横的或竖的)算赢。 -The rules of the game are as follows: chessboard for all 3* 3 grid. Each of the two sides three pawns. The beginning of rotation would like to put a pawn
knight
- 骑士周游世界问题 , 一个称为骑士的棋子,能否在64个放个的棋盘上都走一次且只走一次?在国际象棋中骑士的移动路线是L型的(在一个方向上走两格,在垂直方向上走一格)-Cavalier travel around the world is an issue known as the Cavalier pawn can take 64 months left of the chessboard once and only go once? Cavalier in the international c
wuziqi
- 五子棋程序源代码,横连 竖连 斜线连 连续五个棋子中间没有间断,即获胜-Gobang source code, even the vertical transverse even slash even the middle of five consecutive pawn without interruption, that is to win
BaHuangHou
- 题目:八皇后问题。 八皇后问题是指求解如何在国际象棋8*8棋盘上无冲突的放置八个皇后棋子。因为在国际象棋里,皇后的移动方式是横竖交叉,所以在任意一个皇后所在的位置的水平,竖直和斜45度都不能有其他棋子的存在。一个完整的无冲突的八皇后棋子分布成为八皇后问题的一个解。设计思路:我使用了回溯的方法来解决八皇后问题,也就是逐次试探的方法。这个方法是通过函数putchess()对自身的递归调用来实现的。运行程序后,主函数调用putchess()函数在棋盘第一行第一列上放置棋子,开始向下一行递归。每一步
GOBANG
- 本系统是一个五子棋游戏,在TC2.0下编译通过,基本规则:选定一方先下,之后黑白双方依次落子。棋盘上形成横向、竖向、斜向的连续的相同颜色的五个棋子称为“五连”。黑白双方先在棋盘上形成五连的一方为胜。若对局双方均认为不可能形成五连或是剩余空间已不足以形成五连则为和棋。通过本系统,用户可以体验到人人对战和人机对战。棋间支持一步悔棋。用↑、↓、←、→控制棋子的上、下、左、右。每次提示哪方落子,按下空格落子,按下ESC退出。考虑禁手——六连子。-This system is a backgammon g
Dual-machineEditionRenju
- 此游戏是双机版的五子棋游戏,玩此游戏时是需要两个人(白方和黑方)同时一起玩的。只要有一方先有5 个棋在一条线上就算胜的一方,在一条线上有横,竖和对角线。-This game is double machine version of renju game, play this game is needed when two (white and black) and play together. As long as there is one of five chess in line of th
Minesweeper
- Input:從鍵盤輸入0.exit/1.踩地雷/2.插旗子,然後輸入x(橫向),y(縱向)座標. 地雷陣設定為10x10,有20顆地雷. Output:在dos上輸出地雷陣. -Input: keyboard input 0.exit/1. Minesweeper/2 interpolation flag, and then enter the x (horizontal) and y (vertical) coordinates. The minefield i
four-chess-game
- 四子棋规则 顺序规则:红方为先手,黄方为后手。落子规则为,每一列必须从最底下的一格开始。依此可向上一格落子。一方落子后另一方落子,依此抡次。直到游戏结束。 输赢规则:同一颜色的棋子或水平,或左右斜方向,或垂直方向有四个连成一线即为该方赢,游戏结束。如果满盘均填满,游戏尚未分输赢,则为和棋。 -Four sons chess rules ordering rules: red for the upper hand, Huang Fang FLAC. The Lazi rules f
game
- 五子棋游戏的基本规则:本游戏棋的颜色分为蓝色和红色,哪种颜色棋子先满足下列任意一个条件即为获胜,条件如下: 1.水平方向五个棋子无间断相连 2.垂直方向五个棋子无间断相连 3.斜方向五个棋子无间断相连 -Backgammon game rules: the color of the chess divided into blue and red, which color the pawn first meet any of the following conditions sha
Desktop
- Background This a classical problem. N Queens are placed on a N x N checkerboard. There should not be more than one "Queen" on the same horizontal line, nor on the same vertical, nor on the same diagonal line. Given the size of a checkerboa
Cqipan
- 小型棋盘游戏,两个人用C语言描述在其横线和竖线以及对角线观测输赢。-Small board games, two people described by the C language observation winners and losers in its horizontal and vertical lines and diagonal.
五子棋游戏
- 在一个方阵上通过两人对弈的形式,依次在棋盘上放置两种颜色的棋子,哪一方先让五个棋子形成一条直线(包括横、竖、对角线3个方向),即为获胜,本程序实现用键盘控制的五子棋游戏。游戏初始运行界面应为如下:(In the form of two people playing chess in a square array, place two kinds of color pieces on the chessboard in turn. Which side first makes five piece
