⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bwfind.h

📁 本程序中列举了数字图象模式识别领域中的常用程序,可以在其基础上进行图象处理.
💻 H
字号:
// Bwfind.h: interface for the CBwfind class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_BWFIND_H__A50177D8_86F9_40EA_9FDC_B3DF64DD82CF__INCLUDED_)
#define AFX_BWFIND_H__A50177D8_86F9_40EA_9FDC_B3DF64DD82CF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define BLACK 1;
#define WHITE -1;
#define EMPTY 0;
class CBwfind  :CObject
{
public:
	//保存棋局
	void SaveBoard(int tb[][8]);
	int outcome;
	int bak;
	//记录64步的棋局,以便反悔
	int save[64][8][8];
	BOOL preview;
	int stepx,stepy;
	//搜索
	BOOL search(int tb[][8],int);
	int depth;
	int searchend;
	//计数
	int CountNum();
	int CountWhite();
	int CountBlack();
	void select(int);
	void newboard(int tb[][8],int,int,int);
	BOOL decide(int,int,int);
	CBwfind();
	int board[8][8];
	virtual ~CBwfind();
	int ComChoice,ManChoice;
    
protected:
	
private:
	//估价函数
	void Corner(int tb[][8],int i,int j,int &value);
	void LineSense(int tb[][8],int chessx,int chessy,int &value);
	int Mobility(int tb[][8],int flag);
	void CornerSense(int tb[][8],int &);
	int valuefirst(int tb[][8]);
	int findfirst(int tb[][8],int &,int &, int);
	//计数
	int white(int tb[][8]);
	int black(int tb[][8]);
	int Total(int tb[][8]);
	BOOL judge(int tb[][8],int chessx,int chessy,int flag);
	int findlast(int tb[][8], int &,int &,int);
};

#endif // !defined(AFX_BWFIND_H__A50177D8_86F9_40EA_9FDC_B3DF64DD82CF__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -