3 #ifndef OSL_CHECKMATE_PROOF_NUMBER_TABLE_H
4 #define OSL_CHECKMATE_PROOF_NUMBER_TABLE_H
15 #include <boost/scoped_ptr.hpp>
64 assert((d !=
UUL) && (d !=
UUR));
65 assert(liberty_mask <= 0xff);
66 return (
table->liberties)[liberty_mask][ptype][d];
79 const unsigned int liberty_mask = info.
liberty();
90 const unsigned int liberty_mask = info.
liberty();
95 if (to + offset + offset != king)
99 else if (ptype !=
LANCE)
121 return std::max(1,liberty_count + state.countEffect(defense, to));
136 liberty.
liberty += state.countEffect(defense, to);
141 if (state.countEffect(attack, to))
150 if (state.countEffect(attack, to) >= 2