My Project
|
gnushogi で使われるフォーマット. More...
Classes | |
class | ParseError |
Functions | |
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 | ) |
Definition at line 125 of file usi.cc.
References osl::BISHOP, osl::GOLD, osl::KING, osl::KNIGHT, osl::LANCE, osl::PAWN, osl::PTYPE_EMPTY, osl::ROOK, and osl::SILVER.
Referenced by strToMove().
const std::string osl::psn::show | ( | Move | m | ) |
Definition at line 38 of file usi.cc.
References osl::Move::from(), osl::Square::isPieceStand(), osl::Move::promoteMask(), osl::Move::ptype(), and osl::Move::to().
char osl::psn::show | ( | Ptype | ptype | ) |
Definition at line 19 of file usi.cc.
References osl::BISHOP, osl::GOLD, osl::KING, osl::KNIGHT, osl::LANCE, osl::PAWN, osl::ROOK, and osl::SILVER.
const std::string osl::psn::show | ( | Square | pos | ) |
Definition at line 8 of file usi.cc.
References osl::Square::x(), and osl::Square::y().
const std::string osl::psn::showXP | ( | Move | m | ) |
decorate capture by 'x', promote by '+', and unpromote by '='
Definition at line 57 of file usi.cc.
References 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(), osl::PTYPE_EMPTY, and osl::Move::to().
const osl::Move osl::psn::strToMove | ( | const std::string & | str, |
const SimpleState & | s | ||
) |
Definition at line 86 of file usi.cc.
References osl::captured(), charToPtype(), osl::isPiece(), osl::SimpleState::pieceOnBoard(), osl::promote(), osl::Piece::ptype(), and osl::SimpleState::turn().
const osl::Square osl::psn::strToPos | ( | const std::string & | str | ) |