예제 #1
0
bool GameState::move_piece(const Step &s)
{
  assert(s.is_motion());
  const uint8_t c = s.get_color(), p = s.get_piece(), pos = s.get_position(), finish = s.get_finish();
  return move_piece(c, p, pos, finish);
}
예제 #2
0
bool GameState::add_piece_at(const Step &s)
{
  return add_piece_at(s.get_color(), s.get_piece(), s.get_position());
}