5 #include "move-phash.c"
6 #include <boost/static_assert.hpp>
36 return Move(from().rotate180Safe(), to().rotate180(), ptype(),
37 capturePtype(), isPromotion(),
alt(player()));
43 return os <<
"MOVE_DECLARE_WIN";
45 return os <<
"MOVE_INVALID";
47 return os <<
"MOVE_PASS";
53 os <<
"Drop(" << turn <<
"," << move.
ptype() <<
"," << move.
to() <<
")";
58 os <<
"Move(" << turn <<
"," << move.
ptype() <<
","
59 << move.
from() <<
"->" << move.
to() ;
63 os <<
",capture=" << capture_ptype;
69 os <<
"InvalidMove " << move.
from() <<
" " << move.
to()
80 return move_phash(intValue());
92 return Move(to,ptype,turn);
95 Ptype ptype=state[from].ptype();
96 Ptype capture_ptype=state[to].ptype();
97 bool is_promote=(move16&0x8000)!=0;
101 return Move(from,to,ptype,capture_ptype,
false,turn);