1 #ifndef _OPENING_BOOK_H
2 #define _OPENING_BOOK_H
25 (from.
x() << 4 | from.
y()));
27 (to.
x() << 12 | to.
y() << 8));
28 value = (bitFrom | bitTo |
31 static_cast<unsigned int>(m.
ptype()) << 24 |
32 static_cast<int>(m.
player()) << 28);
36 if ((
value & 0xff) == 0)
43 if (((
value >> 8) & 0xff) == 0)
50 return (
value >> 19) & 1;
54 return static_cast<Ptype>((
value >> 20) & 0xf);
58 return static_cast<Ptype>((
value >> 24) & 0xf);
68 operator int() {
return value; }
107 vector<OBMove>
getMoves(
int stateIndex);
110 void seek(
int offset);
141 struct WMoveSort :
public std::binary_function<WMove, WMove, bool>
214 SimpleState
getBoard(
int stateIndex);
223 std::vector<int>
getParents(
const int stateIndex);
236 const bool visit_zero =
true,
248 void seek(
int offset);
257 #endif // _OPENING_BOOK_H