CSA形式. More...
Classes | |
class | CsaFileMinimal |
struct | CsaIOError |
class | CsaString |
Functions | |
const Move | strToMove (const std::string &s, const SimpleState &st) |
Player | charToPlayer (char c) |
const Square | strToPos (const std::string &s) |
Ptype | strToPtype (const std::string &s) |
const std::string | show (Move) |
const std::string | fancyShow (Move) |
const std::string | show (Square) |
const std::string | show (Ptype) |
const std::string | show (Piece) |
const std::string | show (Player) |
const std::string | show (const Move *first, const Move *last) |
const std::string | show (Move, std::string &buf) |
const std::string | show (Square, std::string &buf, size_t offset=0) |
const std::string | show (Ptype, std::string &buf, size_t offset=0) |
const std::string | show (Player, std::string &buf, size_t offset=0) |
CSA形式.
osl::Player osl::csa::charToPlayer | ( | char | c | ) |
Definition at line 18 of file csa.cc.
References osl::BLACK, strToPos(), and osl::WHITE.
Referenced by osl::csa::CsaIOError::CsaIOError(), osl::record::CsaFile::parseLine(), osl::csa::CsaFileMinimal::parseLine(), and strToMove().
const std::string osl::csa::fancyShow | ( | Move | move | ) |
Definition at line 141 of file csa.cc.
References osl::Move::capturePtype(), osl::Move::isNormal(), osl::Move::isPromotion(), osl::PTYPE_EMPTY, and show().
Referenced by osl::csa::CsaIOError::CsaIOError(), and show().
const std::string osl::csa::show | ( | Move | move | ) |
Definition at line 133 of file csa.cc.
References fancyShow().
Referenced by osl::move_probability::FeatureSet::analyze(), osl::checkmate::Dfpn::analyze(), osl::checkmate::Dfpn::attack(), osl::csa::CsaIOError::CsaIOError(), osl::container::MoveStack::dump(), osl::checkmate::Dfpn::Tree::dump(), fancyShow(), osl::record::CsaFile::makeInfo(), osl::operator<<(), osl::operator==(), osl::record::myshogi::show(), osl::usi::show(), show(), osl::psn::show(), osl::NumEffectState::showEffect(), osl::psn::showXP(), osl::checkmate::slow_increase(), and strToMove().
const std::string osl::csa::show | ( | Square | position | ) |
const std::string osl::csa::show | ( | Ptype | ptype | ) |
const std::string osl::csa::show | ( | Piece | piece | ) |
Definition at line 175 of file csa.cc.
References osl::PieceTable::getPtypeOf(), osl::Piece::isEdge(), osl::Piece::isEmpty(), osl::isPiece(), osl::Piece::isPiece(), osl::Piece::number(), osl::Piece::owner(), osl::Piece_Table, osl::Piece::ptype(), show(), and osl::unpromote().
const std::string osl::csa::show | ( | Player | player | ) |
Definition at line 189 of file csa.cc.
References osl::Move::isInvalid(), and show().
const std::string osl::csa::show | ( | Move | move, |
std::string & | buf | ||
) |
Definition at line 88 of file csa.cc.
References osl::Move::from(), osl::Move::isInvalid(), osl::Move::isPass(), osl::Move::player(), osl::Move::ptype(), show(), and osl::Move::to().
const std::string osl::csa::show | ( | Square | pos, |
std::string & | buf, | ||
size_t | offset = 0 |
||
) |
Definition at line 106 of file csa.cc.
References osl::Square::isPieceStand(), show(), osl::Square::x(), and osl::Square::y().
const std::string osl::csa::show | ( | Ptype | ptype, |
std::string & | buf, | ||
size_t | offset = 0 |
||
) |
Definition at line 123 of file csa.cc.
References osl::PtypeTable::getCsaName(), osl::Ptype_Table, and show().
const std::string osl::csa::show | ( | Player | player, |
std::string & | buf, | ||
size_t | offset = 0 |
||
) |
Definition at line 80 of file csa.cc.
References osl::BLACK, and show().
const osl::Move osl::csa::strToMove | ( | const std::string & | s, |
const SimpleState & | st | ||
) |
Definition at line 48 of file csa.cc.
References charToPlayer(), osl::isPromoted(), osl::SimpleState::pieceAt(), osl::Piece::ptype(), show(), strToPos(), strToPtype(), osl::SimpleState::turn(), and osl::unpromote().
Referenced by osl::csa::CsaIOError::CsaIOError(), osl::record::CsaFile::makeInfo(), osl::usi::parse(), osl::kakinoki::KakinokiFile::parseLine(), osl::csa::CsaFileMinimal::parseLine(), osl::usi::strToMove(), and strToPtype().
const osl::Square osl::csa::strToPos | ( | const std::string & | s | ) |
Definition at line 28 of file csa.cc.
References strToPtype().
Referenced by charToPlayer(), osl::csa::CsaIOError::CsaIOError(), osl::csa::CsaFileMinimal::parseLine(), strToMove(), and osl::psn::strToMove().
osl::Ptype osl::csa::strToPtype | ( | const std::string & | s | ) |
Definition at line 38 of file csa.cc.
References osl::PtypeTable::getCsaName(), osl::Ptype_Table, and strToMove().
Referenced by osl::csa::CsaIOError::CsaIOError(), osl::csa::CsaFileMinimal::parseLine(), strToMove(), and strToPos().