📄 人机对战五子棋trydoc.h
字号:
// 人机对战五子棋tryDoc.h : interface of the CTryDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_TRYDOC_H__84AD85C8_AF8B_4A4A_A498_CBC11537FC0D__INCLUDED_)
#define AFX_TRYDOC_H__84AD85C8_AF8B_4A4A_A498_CBC11537FC0D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define EMPTY 0
#define PEOPLE 1
#define COMPUTER 2
class CTryDoc : public CDocument
{
protected: // create from serialization only
CTryDoc();
DECLARE_DYNCREATE(CTryDoc)
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTryDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
BOOL isadded;
int maxx(int a,int b,int c,int d);
int maxx(int a,int b);
void ResetData();
BOOL decided;
int Get_number();
BOOL IsGameOver();
int maxx(int a,int b,int c,int d,int e,int f,int g,int h,int i,int j,int k,int l);
CPoint ComputerThink1();
CPoint ComputerThink2();
void SetCondition(int i,int j,int value);
int GetCondition(int i,int j);
virtual ~CTryDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CTryDoc)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
int direction[15][15];
int direction2[15][15];
int direction1[15][15];
int number;
int sco[15][15];
int sco_e[15][15];
int sco_se[15][15];
int sco_s[15][15];
int sco_w[15][15];
int sco_sw[15][15];
int sco_nw[15][15];
int sco_ne[15][15];
int sco_n[15][15];
int condition[15][15];
int sco_nesw[15][15];
int sco_ns[15][15];
int sco_nwse[15][15];
int sco_we[15][15];
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TRYDOC_H__84AD85C8_AF8B_4A4A_A498_CBC11537FC0D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -