📄 hasher.h
字号:
/**
@file
Interface of the Othello::Hasher base class, offering hash services
*/
#if !defined _HASHER_H_
#define _HASHER_H_
#include "Boards.h"
namespace Othello
{
/**
Hashing services */
class Hasher
{
public:
/** key generator from table */
unsigned int Key32(const Board &board);
/** lock generator from table */
unsigned int Lock32(const Board &board);
/** redundant (almost) */
unsigned int Hash1(const BookBoard &b);
/** redundant (almost) */
unsigned int Hash2(const BookBoard &b);
protected:
/** zorrbist codes for every square and possible content.*/
static unsigned int Zorbist[10*10][3];
static unsigned int Zorbist2[10*10][3];
};
}
#endif //_HASHER_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -