構成 | 関数

ネームスペース osl::usi

構成

class  ParseError
class  UsiFile

関数

const Move strToMove (const std::string &, const NumEffectState &)
PtypeO charToPtypeO (char)
const std::string show (Move)
const std::string show (PtypeO)
const std::string show (Piece)
const std::string show (const NumEffectState &)
void parseBoard (const std::string &board, NumEffectState &)
 盤面を取得する.
void parse (const std::string &line, NumEffectState &)
 [sfen <sfenstring> | startpos ] moves <move1> ...
void parse (const std::string &line, NumEffectState &initial, std::vector< Move > &moves)
NumEffectState makeState (const std::string &line)
void escape (std::string &str)
 URIやFile systemとして使えるように、文字をescape.
void unescape (std::string &str)
 escapeされた文字を元に戻す.

関数

osl::PtypeO osl::usi::charToPtypeO ( char  c  ) 

usi.cc246 行で定義されています。

参照先 osl::BLACK, osl::psn::charToPtype(), osl::newPtypeO(), と osl::PTYPE_EMPTY.

参照元 parse(), と parseBoard().

void osl::usi::escape ( std::string &  str  ) 

URIやFile systemとして使えるように、文字をescape.

これはGPSShogiによる拡張であり、standardではない. str自体が修正される

usiRecord.cc12 行で定義されています。

参照元 osl::checkmate::Dfpn::generateCheck().

osl::NumEffectState osl::usi::makeState ( const std::string &  line  ) 

usi.cc312 行で定義されています。

参照先 parse().

void osl::usi::parse ( const std::string &  line,
NumEffectState &  initial,
std::vector< Move > &  moves 
)
void osl::usi::parse ( const std::string &  line,
NumEffectState &  state 
)

[sfen <sfenstring> | startpos ] moves <move1> ...

<movei>

usi.cc301 行で定義されています。

参照先 osl::NumEffectState::copyFrom(), と osl::NumEffectState::makeMove().

参照元 makeState(), と osl::usi::UsiFile::UsiFile().

void osl::usi::parseBoard ( const std::string &  board,
NumEffectState &  out 
)

盤面を取得する.

board文字列が不正なときは、ParseErrorがthrowされる.

引数:
board USIの文字列
state boardの解析結果が出力される

usi.cc255 行で定義されています。

参照先 osl::canPromote(), charToPtypeO(), osl::getOwner(), osl::getPtype(), osl::SimpleState::init(), osl::promote(), と osl::SimpleState::setPiece().

参照元 parse().

const std::string osl::usi::show ( Move  m  ) 

usi.cc146 行で定義されています。

参照先 osl::Move::DeclareWin(), osl::Move::isNormal(), と osl::Move::isPass().

参照元 show().

const std::string osl::usi::show ( PtypeO  ptypeo  ) 

usi.cc158 行で定義されています。

参照先 osl::getOwner(), osl::getPtype(), osl::isPiece(), osl::isPromoted(), show(), osl::unpromote(), と osl::WHITE.

const std::string osl::usi::show ( Piece  p  ) 

usi.cc173 行で定義されています。

参照先 osl::Piece::ptypeO(), と show().

const std::string osl::usi::show ( const NumEffectState &  state  ) 
const osl::Move osl::usi::strToMove ( const std::string &  str,
const NumEffectState &  s 
)

usi.cc226 行で定義されています。

参照先 osl::Move::DeclareWin(), osl::Move::INVALID(), osl::Move::PASS(), と osl::SimpleState::turn().

参照元 parse().

void osl::usi::unescape ( std::string &  str  ) 

escapeされた文字を元に戻す.

これはGPSShogiによる拡張であり、standardではない. str自体が修正される

usiRecord.cc20 行で定義されています。

 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義