Classes | Functions
osl::csa Namespace Reference

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)
 

Detailed Description

CSA形式.

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

Function Documentation

§ charToPlayer()

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

§ fancyShow()

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

§ show() [1/10]

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

§ show() [2/10]

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

Definition at line 161 of file csa.cc.

References show().

§ show() [3/10]

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

Definition at line 168 of file csa.cc.

References show().

§ show() [4/10]

const std::string osl::csa::show ( Piece  piece)

§ show() [5/10]

const std::string osl::csa::show ( Player  player)

Definition at line 154 of file csa.cc.

References show().

§ show() [6/10]

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

Definition at line 189 of file csa.cc.

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

§ show() [7/10]

const std::string osl::csa::show ( Move  move,
std::string &  buf 
)

§ show() [8/10]

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().

§ show() [9/10]

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().

§ show() [10/10]

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().

§ strToMove()

const osl::Move osl::csa::strToMove ( const std::string &  s,
const SimpleState st 
)

§ strToPos()

const osl::Square osl::csa::strToPos ( const std::string &  s)

§ strToPtype()

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