All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Functions
osl::record::csa Namespace Reference

CSA形式. More...

Classes

struct  CsaIOError
 
class  InputStream
 
class  CsaFile
 
class  CsaString
 

Functions

const Move strToMove (const std::string &s, const state::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)
 

Detailed Description

CSA形式.

CSA形式の定義 http://www.computer-shogi.org/wcsc12/record.html

Function Documentation

osl::Player osl::record::csa::charToPlayer ( char  c)

Definition at line 14 of file csa.cc.

References osl::BLACK, and osl::WHITE.

const std::string osl::record::csa::fancyShow ( Move  move)
const std::string osl::record::csa::show ( Move  move)

Definition at line 129 of file csa.cc.

Referenced by osl::search::SearchState2Core::abort(), osl::move_probability::FeatureSet::analyze(), osl::checkmate::Dfpn::analyze(), osl::checkmate::Dfpn::attack(), checkmate_attack(), osl::search::AlphaBeta2< EvalT >::computeBestMoveIteratively(), convert(), osl::game_playing::UsiResponse::csamove(), osl::csaShow(), osl::search::SimpleHashRecord::dump(), osl::search::QuiescenceRecord::dump(), fancyShow(), find_all(), find_bad_moves(), osl::search::AlphaBeta2< EvalT >::findCheckmateInPV(), osl::game_playing::UsiResponse::generateGoodMoves(), osl::game_playing::GameManager::load(), main(), RecordPrinter2::noChildMove(), osl::game_playing::SpeculativeAllMoves::SearchAllMoves::Generator::pickUpMove(), printNextMoves(), osl::game_playing::CsaClient::processComputerMove(), processRecord(), qsearch(), osl::game_playing::CsaClient::readAndProcessCommand(), osl::search::UsiReporter::rootMove(), run(), search(), Analyzer::search(), osl::search::AlphaBeta3::searchRoot(), osl::game_playing::SpeculativeSearchPlayer::selectBestMove(), osl::game_playing::WeightTracer::selectMoveAtRandom(), osl::game_playing::HistoryToTable::setPV(), osl::record::myshogi::show(), show(), osl::record::usi::show(), osl::record::psn::show(), show(), osl::ptl::PtypeList< T, U >::show(), osl::game_playing::SpeculativeAllMoves::ResultVector::show(), show_history(), show_moves(), osl::state::NumEffectState::showEffect(), osl::search::AlphaBeta2Tree< EvalT >::showFailLow(), osl::search::AlphaBeta2SharedRoot::showLastPv(), osl::search::UsiReporter::showPV(), osl::search::CerrMonitor::showPV(), osl::search::AlphaBeta2Tree< EvalT >::showPV(), osl::search::UsiReporter::showPVExtended(), osl::record::psn::showXP(), osl::game_playing::SpeculativeAllMoves::SearchAllMoves::stopOtherThan(), osl::game_playing::SpeculativeAllMoves::SearchAllMoves::testMove(), testWinOrLose(), osl::game_playing::RecordTracer::update(), osl::game_playing::WeightTracer::update(), RecordPrinter::withChildMove(), RecordPrinter2::withChildMove(), write_file(), and osl::stat::Histogram::~Histogram().

const std::string osl::record::csa::show ( Square  position)

Definition at line 157 of file csa.cc.

References show().

const std::string osl::record::csa::show ( Ptype  ptype)

Definition at line 164 of file csa.cc.

References show().

const std::string osl::record::csa::show ( Piece  piece)
const std::string osl::record::csa::show ( Player  player)

Definition at line 150 of file csa.cc.

References show().

const std::string osl::record::csa::show ( const Move *  first,
const Move *  last 
)

Definition at line 185 of file csa.cc.

References osl::Move::isInvalid(), out, and show().

const std::string osl::record::csa::show ( Move  move,
std::string &  buf 
)
const std::string osl::record::csa::show ( Square  pos,
std::string &  buf,
size_t  offset = 0 
)

Definition at line 102 of file csa.cc.

References osl::Square::isPieceStand(), osl::Square::x(), and osl::Square::y().

const std::string osl::record::csa::show ( Ptype  ptype,
std::string &  buf,
size_t  offset = 0 
)

Definition at line 119 of file csa.cc.

References osl::PtypeTable::getCsaName(), and osl::Ptype_Table.

const std::string osl::record::csa::show ( Player  player,
std::string &  buf,
size_t  offset = 0 
)

Definition at line 76 of file csa.cc.

References osl::BLACK.

const Move osl::record::csa::strToMove ( const std::string &  s,
const state::SimpleState &  st 
)
const osl::Square osl::record::csa::strToPos ( const std::string &  s)

Definition at line 24 of file csa.cc.

osl::Ptype osl::record::csa::strToPtype ( const std::string &  s)

Definition at line 34 of file csa.cc.

References osl::PtypeTable::getCsaName(), and osl::Ptype_Table.