decision.h
来自「在linux下使用qt来开发的五子棋」· C头文件 代码 · 共 18 行
H
18 行
#ifndef DECISION_H
#define DECISION_H
class Decision
{
public:
//static int ChessPlace(int x, int y);
////static bool LimitArea(int x, int y);
////static void AdjustDraw(int x, int y, int &dx, int &dy);
static void BlankFilter( char (*realgrid)[15], char (*legalblank)[15] ); //生成字节点的过滤算法:落子后生成一系列字节点(空格位置填子进行预测),空格棋子附近两个格内有棋子才是合法字节点
static float MyChance( char (*realgrid)[15], const int &m, const int &n ); //自己进攻的机会,权重加
static float RivalChance( char (*realgrid)[15], const int &m, const int &n ); //对手进攻的机会,权重减
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?