構成 | |
| class | ParseError |
| class | UsiFile |
関数 | |
| const Move | strToMove (const std::string &, const state::SimpleState &) |
| PtypeO | charToPtypeO (char) |
| const std::string | show (Move) |
| const std::string | show (PtypeO) |
| const std::string | show (Piece) |
| const std::string | show (const state::SimpleState &) |
| void | parseBoard (const std::string &board, state::SimpleState &) |
| 盤面を取得する. | |
| void | parse (const std::string &line, state::SimpleState &) |
| [sfen <sfenstring> | startpos ] moves <move1> . | |
| void | parse (const std::string &line, state::SimpleState &initial, vector< Move > &moves) |
| void | escape (std::string &str) |
| URIやFile systemとして使えるように、文字をescape. | |
| void | unescape (std::string &str) |
| escapeされた文字を元に戻す. | |
| osl::PtypeO osl::record::usi::charToPtypeO | ( | char | c | ) |
| void osl::record::usi::escape | ( | std::string & | str | ) |
URIやFile systemとして使えるように、文字をescape.
これはGPSShogiによる拡張であり、standardではない. str自体が修正される
参照元 checkmate_escape(), osl::search::QuiescenceSearch2< EvalT >::examineTakeBack2(), と osl::checkmate::Dfpn::generateCheck().
| void osl::record::usi::parse | ( | const std::string & | line, | |
| state::SimpleState & | initial, | |||
| vector< Move > & | moves | |||
| ) |
| void osl::record::usi::parse | ( | const std::string & | line, | |
| state::SimpleState & | ||||
| ) |
[sfen <sfenstring> | startpos ] moves <move1> .
.. <movei>
| void osl::record::usi::parseBoard | ( | const std::string & | board, | |
| state::SimpleState & | ||||
| ) |
盤面を取得する.
board文字列が不正なときは、ParseErrorがthrowされる.
| board | USIの文字列 | |
| state | boardの解析結果が出力される |
| const std::string osl::record::usi::show | ( | const state::SimpleState & | ) |
| const std::string osl::record::usi::show | ( | Piece | p | ) |
参照先 osl::Piece::ptypeO(), と show().
| const std::string osl::record::usi::show | ( | PtypeO | ptypeo | ) |
| const std::string osl::record::usi::show | ( | Move | m | ) |
| const Move osl::record::usi::strToMove | ( | const std::string & | , | |
| const state::SimpleState & | ||||
| ) |
1.6.3