3 #ifndef OSL_PROOFPIECESUTIL_H 4 #define OSL_PROOFPIECESUTIL_H 31 const int diff = max.
get(ptype) - out.
get(ptype);
int max(Player p, int v1, int v2)
void add(Ptype type, unsigned int num=1)
constexpr Player alt(Player player)
unsigned int get(Ptype type) const
bool hasPieceOnStand(Player player, Ptype ptype) const
static void addMonopolizedPieces(const SimpleState &state, Player player, const PieceStand max, PieceStand &out)
alt(player) が持っていない種類の持駒を playerが持っていたら out に独占分を加算する. ...
ProofPieces と DisproofPieces に共通の関数
static const CArray< Ptype, 7 > order
持駒の表示で良く使われる順番.