📄 hheuristic.cpp
字号:
/**
@file
Some history heuristic related code
*/
#include "HHeuristic.h"
using namespace Othello;
HistoryHeuristic& HistoryHeuristic::Instance()
{
static HistoryHeuristic hh;
return hh;
}
void HistoryHeuristic::Reset()
{
for(unsigned int i=p11; i<s89; i++)
{
_tb[i][0]=0;
_tb[i][1]=0;
}
for(unsigned int d=0; d<32; d++)
{
_kmoves[d][0].move1=NOT_A_KMOVE;
_kmoves[d][0].move2=NOT_A_KMOVE;
_kmoves[d][1].move1=NOT_A_KMOVE;
_kmoves[d][1].move2=NOT_A_KMOVE;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -