<piece設定>
(piece
(name Pawn)
(help "Pawn: moves forward, captures diagonally, can promote on 8th row")
(description
"Pawn\
A Pawn can move straight ahead one square, or two squares from its starting position.
A Pawn captures by moving one square ahead and diagonally.
If a Pawn reaches the far rank it promotes, changing into a Knight, Bishop, Rook, or Queen.
On rare occasions Pawns can also execute a move called `En Passant`, or `in passing`.
This allows a Pawn to take an enemy Pawn that has just moved two squares."
)
(image
White "images\Chess\SHaag\wpawn.bmp" "images\Chess\wpawn.bmp"
Black "images\Chess\SHaag\bpawn.bmp" "images\Chess\bpawn.bmp"
)
(moves
(Pawn-move)
(Pawn-capture ne)
(Pawn-capture nw)
(En-Passant e)
(En-Passant w)
)
)
※前への(Pawn-move)を呼び出します。
※前斜めへの(Pawn-capture)を呼び出します。
※左右へのアンパッサン(En-Passant)を呼び出します。
(piece
(name Knight)
(help "Knight: moves like an `L`, 2 squares one way and one the other")
(description
"Knight\
A Knight moves like an `L`, two squares vertically plus one horizontally,
or two squares horizontally plus one vertically.
It hops over any pieces on the way."
)
(image
White "images\Chess\SHaag\wknight.bmp" "images\Chess\wknight.bmp"
Black "images\Chess\SHaag\bknight.bmp" "images\Chess\bknight.bmp"
)
(moves
(leap2 n ne)
(leap2 n nw)
(leap2 s se)
(leap2 s sw)
(leap2 e ne)
(leap2 e se)
(leap2 w nw)
(leap2 w sw)
)
)
※8方向への(leap2)を呼び出します。
(piece
(name Bishop)
(help "Bishop: slides diagonally any number of squares")
(description
"Bishop\
A Bishop moves any number of squares on a diagonal.
It may not leap over other pieces."
)
(image
White "images\Chess\SHaag\wbishop.bmp" "images\Chess\wbishop.bmp"
Black "images\Chess\SHaag\bbishop.bmp" "images\Chess\bbishop.bmp"
)
(moves
(slide ne)
(slide nw)
(slide se)
(slide sw)
)
)
※斜めへの(slide)を呼び出します。
(piece
(name Rook)
(help "Rook: slides any number of squares along the row or column.")
(description
"Rook\
A Rook moves any number of squares orthogonally on a rank or a file.
It may not leap over other pieces."
)
(image
White "images\Chess\SHaag\wrook.bmp" "images\Chess\wrook.bmp"
Black "images\Chess\SHaag\brook.bmp" "images\Chess\brook.bmp"
)
(attribute never-moved? true)
(moves
(rook-slide n)
(rook-slide s)
(rook-slide e)
(rook-slide w)
)
)
※縦横への(rook-slide)を呼び出します。
(piece
(name Queen)
(help "Queen: can slide any number of squares in any direction")
(description
"Queen\
A Queen moves any number of squares in a straight line.
It may not leap over other pieces."
)
(image
White "images\Chess\SHaag\wqueen.bmp" "images\Chess\wqueen.bmp"
Black "images\Chess\SHaag\bqueen.bmp" "images\Chess\bqueen.bmp"
)
(moves
(slide n)
(slide s)
(slide e)
(slide w)
(slide ne)
(slide nw)
(slide se)
(slide sw)
)
)
※縦横斜めへの(slide)を呼び出します。
(piece
(name King)
(help "King: steps 1 square in any direction to a safe square")
(description
"King\
A King can move to any adjacent square, but never to a square where it can be captured.
It may also `castle` with the Rook if neither the Rook nor King has moved yet and there is nothing in between them.
In castling the King moves two squares nearer the Rook and the Rook leaps to the far side of the King.
You may not castle out of or through check, or if the King or Rook involved has previously moved."
)
(image
White "images\Chess\SHaag\wking.bmp" "images\Chess\wking.bmp"
Black "images\Chess\SHaag\bking.bmp" "images\Chess\bking.bmp"
)
(attribute never-moved? true)
(moves
(king-shift n)
(king-shift s)
(king-shift e)
(king-shift w)
(king-shift ne)
(king-shift nw)
(king-shift se)
(king-shift sw)
(O-O)
(O-O-O)
)
)
※縦横斜めへの(king-shift)を呼び出します。
※左右へのキャスリング(O-O)と(O-O-O)を呼び出します。
最終更新:2020年08月18日 15:29