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