3 #ifndef OSL_POSITIONCOMPRESSOR_H 4 #define OSL_POSITIONCOMPRESSOR_H 26 const int result = positionToIndex[pos.
index()];
41 return Square(index/9+1, index%9+1);
const PtypeO PTYPEO_EDGE __attribute__((unused))
static int compress(Square pos)
unsigned int index() const
static Square melt(int index)
Square を [0..81] に圧縮する 0: 駒台,1..81 盤上
static const Square STAND()
static CArray< signed char, Square::SIZE > positionToIndex
本当はconst にしたいけど初期化が手間なので後回し