Classes | |
class | KakinokiFile |
struct | KakinokiIOError |
Functions | |
Move | strToMove (const std::string &, const SimpleState &, Move last_move=Move()) |
std::pair< Player, Ptype > | strToPiece (const std::string &) |
osl::Move osl::kakinoki::strToMove | ( | const std::string & | s, |
const SimpleState & | state, | ||
Move | last_move = Move() |
||
) |
Definition at line 167 of file kakinoki.cc.
References osl::captured(), osl::Square::isPieceStand(), K_NARU, K_ONAZI, K_UTSU, osl::kakinoki::KakinokiFile::KakinokiFile(), osl::SimpleState::pieceOnBoard(), osl::promote(), osl::Piece::ptype(), osl::Move::to(), osl::record::KanjiMove::toPtype(), osl::record::KanjiMove::toSquare(), and osl::SimpleState::turn().
Referenced by strToPiece().
std::pair< osl::Player, osl::Ptype > osl::kakinoki::strToPiece | ( | const std::string & | s | ) |
Definition at line 156 of file kakinoki.cc.
References osl::BLACK, strToMove(), osl::record::KanjiMove::toPtype(), and osl::WHITE.
Referenced by osl::kakinoki::KakinokiFile::parseLine().