📄 struct.h
字号:
/**
*
* 文件名: Struct.h
* 描述: 定义结构体
* 作者: 魏罡
* 时间: 2005.3.27 - 2005.10.4
*
* File name: Struct.h
* Description: define the structures
* Author: WEI-Gang
* Time: 2005.3.27 - 2005.10.4
*
*/
#ifndef GOBANG_GAME_STRUCT
#define GOBANG_GAME_STRUCT "This program is programed by WEI-Gang "
struct board{
//棋盘结构
//structure of the board
char col; //棋子颜色 K空 B白 H黑 //color of the chessman
int sin; //标记 //sign
int val; //权值 //power value
};
struct node{
//树结点结构
//structure of the nodes of the tree
node * left; //左结点 //the left node
node * right; //右结点 //the right node
node * parent; //父结点 //the parent node
int x; //落子位置x //place on the board(x)
int y; //落子位置y //place on the board(y)
int sin; //标记 //sign
long win; //得胜次数 //win times
long lose; //失败次数 //win times
char lay[450]; //棋盘布局 //Layout of the chessboard
};
struct keychessman{
//关键棋子结构
//structure of the key chessman
int x; //关键棋子x坐标
int y; //关键棋子y坐标
char col; //关键棋子颜色
keychessman * next; //下一关键棋子指针
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -