-
Notifications
You must be signed in to change notification settings - Fork 0
/
Strategy.h
32 lines (24 loc) · 1.03 KB
/
Strategy.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/********************************************************
* Strategy.h : 策略接口文件 *
* 张永锋 *
* 2010.8 *
*********************************************************/
#ifndef STRATEGY_H_
#define STRATEGY_H_
#include "Point.h"
extern "C" __declspec(dllexport) Point* getPoint(const int M, const int N, const int* top, const int* _board,
const int lastX, const int lastY, const int noX, const int noY);
extern "C" __declspec(dllexport) void clearPoint(Point* p);
void clearArray(int M, int N, int** board);
/*
添加你自己的辅助函数
*/
int TreePolicy(int t);
void putLoc(int x, int y, bool u);
int checkResult(int x, int y, bool u);
int BestChildNode(int t, double inputC);
void boardInitialization(int M, int N, int noX, int noY);
std::pair<int, int> DefaultPolicy(int state);
int backUp(std::pair<int, int> input);
#endif