11 std::ostringstream os;
12 os <<
"\\begin{myshogi}[.7] \\banmen \n";
13 os <<
"\\mochigoma{\\sente}";
16 os <<
"\n\\mochigoma{\\gote}";
21 os <<
"\\lastmove[" << last_move.
to().
x() << last_move.
to().
y()
35 os <<
"\\end{myshogi}\n";
51 "\\tokin",
"\\narikyou",
"\\narikei",
"\\narigin",
"\\uma",
"\\ryu",
53 "\\kin",
"\\fu",
"\\kyou",
"\\kei",
"\\gin",
"\\kaku",
"\\hi"
61 std::string ret =
"xx";
72 return std::string(
"\\koma{") +
show(p.
square()) +
"}"
79 return p ==
BLACK ?
"\\sente" :
"\\gote";
bool isNormal() const
INVALID でも PASS でもない.
static const CArray< Ptype, 7 > order
持駒の表示で良く使われる順番.
const Square square() const
const Piece pieceOf(int num) const
int countPiecesOnStand(Player pl, Ptype ptype) const
持駒の枚数を数える
int y() const
将棋としてのY座標を返す.
int x() const
将棋としてのX座標を返す.
const std::string show(Move)
const std::string show(Square)
std::string show(const NumEffectState &state)