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