gnushogi で使われるフォーマット. [詳細]
構成 | |
class | ParseError |
関数 | |
const Move | strToMove (const std::string &, const SimpleState &) |
const Square | strToPos (const std::string &) |
Ptype | charToPtype (char) |
const std::string | show (Move) |
const std::string | show (Square) |
char | show (Ptype) |
const std::string | showXP (Move) |
decorate capture by 'x', promote by '+', and unpromote by '=' |
gnushogi で使われるフォーマット.
何種類かある.
osl::Ptype osl::psn::charToPtype | ( | char | c | ) |
参照元 osl::usi::charToPtypeO(), と strToMove().
const std::string osl::psn::show | ( | Move | m | ) |
const std::string osl::psn::show | ( | Square | pos | ) |
参照先 osl::Square::x(), と osl::Square::y().
char osl::psn::show | ( | Ptype | ptype | ) |
参照先 osl::BISHOP, osl::GOLD, osl::KING, osl::KNIGHT, osl::LANCE, osl::PAWN, osl::ROOK, と osl::SILVER.
const std::string osl::psn::showXP | ( | Move | m | ) |
decorate capture by 'x', promote by '+', and unpromote by '='
参照先 osl::Square::canPromote(), osl::canPromote(), osl::Move::capturePtype(), osl::Move::from(), osl::Move::isInvalid(), osl::Move::isPass(), osl::Square::isPieceStand(), osl::Move::isPromotion(), osl::Move::player(), osl::Move::ptype(), show(), と osl::Move::to().
const osl::Move osl::psn::strToMove | ( | const std::string & | str, | |
const SimpleState & | s | |||
) |
const osl::Square osl::psn::strToPos | ( | const std::string & | str | ) |
参照元 strToMove().