11 std::ostringstream os;
12 os <<
"\\begin{myshogi}[.7] \\banmen \n";
13 os <<
"\\mochigoma{\\sente}";
14 for (
Ptype ptype: PieceStand::order)
16 os <<
"\n\\mochigoma{\\gote}";
17 for (
Ptype ptype: PieceStand::order)
21 os <<
"\\lastmove[" << last_move.
to().
x() << last_move.
to().
y()
27 for (
int i=0; i<Piece::SIZE; ++i)
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";
int countPiecesOnStand(Player pl, Ptype ptype) const
持駒の枚数を数える
bool isNormal() const
INVALID でも PASS でもない.
int y() const
将棋としてのY座標を返す.
int x() const
将棋としてのX座標を返す.
const Piece pieceOf(int num) const
const Square square() const
const std::string show(Move)
std::string show(const NumEffectState &state)