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

gnushogi で使われるフォーマット. More...

Classes

class  ParseError
 

Functions

const Move strToMove (const std::string &, const state::SimpleState &)
 
const Square strToPos (const std::string &)
 
Ptype charToPtype (char)
 
const std::string show (Move)
 
const std::string show (Square)
 
char show (Ptype)
 
const std::string showXP (Move)
 decorate capture by 'x', promote by '+', and unpromote by '=' More...
 

Detailed Description

gnushogi で使われるフォーマット.

何種類かある.

Function Documentation

osl::Ptype osl::record::psn::charToPtype ( char  c)
const std::string osl::record::psn::show ( Move  m)
const std::string osl::record::psn::show ( Square  pos)

Definition at line 7 of file psn.cc.

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

char osl::record::psn::show ( Ptype  ptype)

Definition at line 18 of file psn.cc.

References osl::BISHOP, osl::GOLD, osl::KING, osl::KNIGHT, osl::LANCE, osl::PAWN, osl::ROOK, and osl::SILVER.

const std::string osl::record::psn::showXP ( Move  m)
const Move osl::record::psn::strToMove ( const std::string &  ,
const state::SimpleState &   
)
const osl::Square osl::record::psn::strToPos ( const std::string &  str)

Definition at line 113 of file psn.cc.