将棋のZRF:解説9

<piece設定>
  • 歩兵の駒を設定するブロック:
 (piece
  (name Pawn)
  (image
   White "images\Shogi\SHaag\PawnFlip.bmp" "images\Shogi\IntlSHaag\PawnFlip.bmp" "images\Shogi\PawnFlip.bmp"
   Black "images\Shogi\SHaag\Pawn.bmp" "images\Shogi\IntlSHaag\Pawn.bmp" "images\Shogi\Pawn.bmp" )
  (help "Pawn (Fuhyo): steps 1 square straight ahead")
  (description
   "Pawn (Fuhyo)\A Pawn moves a single square forward at a time.
   It captures forward, just like it moves. When it promotes it moves like a Gold General."
  )
  (moves
   (move-type with-king)
   (shiftP n Tokin drop-pawn-zone)
   (drop-pawn)
  )
 )

  • と金の駒を設定するブロック:
 (piece
  (name Tokin)
  (image
   White "images\Shogi\SHaag\PawnPFlip.bmp" "images\Shogi\IntlSHaag\PawnPFlip.bmp" "images\Shogi\PawnPFlip.bmp"
   Black "images\Shogi\SHaag\PawnP.bmp" "images\Shogi\IntlSHaag\PawnP.bmp" "images\Shogi\PawnP.bmp")
  (help "Tokin: steps 1 square in any direction except diagonally backwards")
  (description
   "Promoted Pawn (Tokin)\
   A Tokin moves in the same way a Gold General does,
   i.e. a single step in any direction except diagonally backwards."
  )
  (moves ; like a Gold General
   (move-type no-king)
   (shift nw)
   (shift n)
   (shift ne)
   (shift e)
   (shift w)
   (shift s)
   (drop-pawn)
  )
 )

  • 香車の駒を設定するブロック:
 (piece
  (name Lance)
  (image
    White "images\Shogi\SHaag\LanceFlip.bmp" "images\Shogi\IntlSHaag\LanceFlip.bmp" "images\Shogi\LanceFlip.bmp"
    Black "images\Shogi\SHaag\Lance.bmp" "images\Shogi\IntlSHaag\Lance.bmp" "images\Shogi\Lance.bmp")
  (help "Lance (Kyosha): slides straight ahead any number of squares")
  (description
   "Lance (Kyosha)\
    A Lance moves any number of squares, but only directly forward.
    When it promotes it moves like a Gold General."
  )
  (moves
   (move-type no-king)
   (slideP n Promoted-Lance drop-pawn-zone)
   (drop drop-pawn-zone)
  )
 )

  • 成金の駒を設定するブロック:
 (piece
  (name Promoted-Lance)
  (image
   White "images\Shogi\SHaag\LancePFlip.bmp" "images\Shogi\IntlSHaag\LancePFlip.bmp" "images\Shogi\LancePFlip.bmp"
    Black "images\Shogi\SHaag\LanceP.bmp" "images\Shogi\IntlSHaag\LanceP.bmp" "images\Shogi\LanceP.bmp")
  (help "Promoted Lance (Nari-Kyo): steps 1 square in any direction except diagonally backwards")
  (description
   "Promoted Lance (Nari-Kyo)\
   A promoted Lance moves in the same way a Gold General does,
   i.e. a single step in any direction except diagonally backwards."
  )
  (moves ; like a Gold General
   (move-type no-king)
   (shift nw)
   (shift n)
   (shift ne)
   (shift e)
   (shift w)
   (shift s)
   (drop play-zone)
  )
 )

  • 桂馬の駒を設定するブロック:
 (piece
  (name Knight)
  (image
    White "images\Shogi\SHaag\KnightFlip.bmp" "images\Shogi\IntlSHaag\KnightFlip.bmp" "images\Shogi\KnightFlip.bmp"
    Black "images\Shogi\SHaag\Knight.bmp" "images\Shogi\IntlSHaag\Knight.bmp" "images\Shogi\Knight.bmp")
  (help "Knight (Keima): hops ahead 2 squares and either left or right 1 square")
  (description
   "Knight (Keima)\
   A Shogi Knight hops over pieces as in Western Chess, but it is limited to forward motion:
   it leaps forward two squares and over one square to the left or right.
   When it promotes it moves like a Gold General."
  )
  (moves
   (move-type no-king)
   (shift2P n nw Promoted-Knight drop-knight-zone)
   (shift2P n ne Promoted-Knight drop-knight-zone)
   (drop drop-knight-zone)
  )
 )

  • 成金の駒を設定するブロック:
 (piece
  (name Promoted-Knight)
  (image
   White "images\Shogi\SHaag\KnightPFlip.bmp" "images\Shogi\IntlSHaag\KnightPFlip.bmp" "images\Shogi\KnightPFlip.bmp"
    Black "images\Shogi\SHaag\KnightP.bmp" "images\Shogi\IntlSHaag\KnightP.bmp" "images\Shogi\KnightP.bmp")
  (help "Promoted Knight (Nari-Kei): steps 1 square in any direction except diagonally backwards")
  (description
   "Promoted Knight (Nari-Kei)\
   A promoted Knight moves in the same way a Gold General does,
   i.e. a single step in any direction except diagonally backwards."
  )
  (moves ; like a Gold General
   (move-type no-king)
   (shift nw)
   (shift n)
   (shift ne)
   (shift e)
   (shift w)
   (shift s)
   (drop drop-knight-zone)
  )
 )

  • 銀将の駒を設定するブロック:
 (piece
  (name Silver)
  (image
    White "images\Shogi\SHaag\SilverFlip.bmp" "images\Shogi\IntlSHaag\SilverFlip.bmp" "images\Shogi\SilverFlip.bmp"
   Black "images\Shogi\SHaag\Silver.bmp" "images\Shogi\IntlSHaag\Silver.bmp" "images\Shogi\Silver.bmp")
  (help "Silver General (Ginsho): steps 1 square diagonally or straight ahead")
  (description
   "Silver General (Ginsho or `Gin` for short)\
   A Silver General moves a single step straight ahead or diagonally.
   When it promotes it moves like a Gold General."
  )
  (moves
   (move-type no-king)
   (shiftP nw Promoted-Silver play-zone)
   (shiftP n Promoted-Silver play-zone)
   (shiftP ne Promoted-Silver play-zone)
   (shiftP sw Promoted-Silver play-zone)
   (shiftP se Promoted-Silver play-zone)
   (drop play-zone)
  )
 )

  • 成金の駒を設定するブロック:
 (piece
  (name Promoted-Silver)
  (image
   White "images\Shogi\SHaag\SilverPFlip.bmp" "images\Shogi\IntlSHaag\SilverPFlip.bmp" "images\Shogi\SilverPFlip.bmp"
   Black "images\Shogi\SHaag\SilverP.bmp" "images\Shogi\IntlSHaag\SilverP.bmp" "images\Shogi\SilverP.bmp")
  (help "Promoted Silver (Nari-Gin): steps 1 square in any direction except diagonally backwards")
  (description
   "Promoted Silver General(Nari-Gin)\
   A promoted Silver General moves in the same way a Gold General does,
   i.e. a single step in any direction except diagonally backwards."
  )
  (moves
   (move-type no-king)
   (shift nw)
   (shift n)
   (shift ne)
   (shift e)
   (shift w)
   (shift s)
   (drop play-zone)
  )
 )

  • 金将の駒を設定するブロック:
 (piece
  (name Gold)
  (image
   White "images\Shogi\SHaag\GoldFlip.bmp" "images\Shogi\IntlSHaag\GoldFlip.bmp" "images\Shogi\GoldFlip.bmp"
   Black "images\Shogi\SHaag\Gold.bmp" "images\Shogi\IntlSHaag\Gold.bmp" "images\Shogi\Gold.bmp")
  (help "Gold General (Kinsho): steps 1 square in any direction except diagonally backwards")
  (description
   "Gold General (Kinsho)\
   A Gold General moves a single step in any direction except diagonally backwards.
   It does not promote."
  )
  (moves
   (move-type no-king)
   (shift nw)
   (shift n)
   (shift ne)
   (shift e)
   (shift w)
   (shift s)
   (drop play-zone)
  )
 )

  • 角行の駒を設定するブロック:
 (piece
  (name Bishop)
  (image
    White "images\Shogi\SHaag\BishopFlip.bmp" "images\Shogi\IntlSHaag\BishopFlip.bmp" "images\Shogi\BishopFlip.bmp"
    Black "images\Shogi\SHaag\Bishop.bmp" "images\Shogi\IntlSHaag\Bishop.bmp" "images\Shogi\Bishop.bmp")
  (help "Bishop (Kakugyo): slides diagonally any number of squares")
  (description
   "Bishop (Kakugyo or `Kaku` for short)\
   A Shogi Bishop moves exactly as in chess,
   i.e. any number of squares on a diagonal. It may not leap over other pieces.
   When it promotes it gains a single step up, down, left, or right."
  )
  (moves
   (move-type no-king)
   (slideP ne Promoted-Bishop play-zone)
   (slideP nw Promoted-Bishop play-zone)
   (slideP se Promoted-Bishop play-zone)
   (slideP sw Promoted-Bishop play-zone)
   (drop play-zone)
  )
 )

竜馬の駒を設定するブロック:
 (piece
  (name Promoted-Bishop)
  (image
    White "images\Shogi\SHaag\BishopPFlip.bmp" "images\Shogi\IntlSHaag\BishopPFlip.bmp" "images\Shogi\BishopPFlip.bmp"
    Black "images\Shogi\SHaag\BishopP.bmp" "images\Shogi\IntlSHaag\BishopP.bmp" "images\Shogi\BishopP.bmp")
  (help "Promoted Bishop (Ryuma): makes a Bishop move or steps 1 square orthoganolly.")
  (description
   "Promoted Bishop (Ryuma or `Dragon Horse`)\
   Moves any number of squares diagonally,
   or makes a single step orthogonally along a rank or file.
   It may not leap over other pieces."
  )
  (moves
   (move-type no-king)
   (slide ne)
   (slide nw)
   (slide se)
   (slide sw)
   (shift n)
   (shift s)
   (shift e)
   (shift w)
   (drop play-zone)
  )
 )

  • 飛車の駒を設定するブロック:
 (piece
  (name Rook)
  (image
    White "images\Shogi\SHaag\RookFlip.bmp" "images\Shogi\IntlSHaag\RookFlip.bmp" "images\Shogi\RookFlip.bmp"
    Black "images\Shogi\SHaag\Rook.bmp" "images\Shogi\IntlSHaag\Rook.bmp" "images\Shogi\Rook.bmp")
  (help "Rook (Hisha): slides any number of squares along the row or column.")
  (description
   "Rook (Hisha)\
   A Shogi Rook moves exactly as in chess,
   i.e. any number of squares on a rank or a file.
   It may not leap over other pieces.
   When it promotes it gains a single step diagonally."
  )
  (moves
   (move-type no-king)
   (slideP n Promoted-Rook play-zone)
   (slideP s Promoted-Rook play-zone)
   (slideP e Promoted-Rook play-zone)
   (slideP w Promoted-Rook play-zone)
   (drop play-zone)
  )
 )

  • 竜王の駒を設定するブロック:
 (piece
  (name Promoted-Rook)
  (image
    White "images\Shogi\SHaag\RookPFlip.bmp" "images\Shogi\IntlSHaag\RookPFlip.bmp" "images\Shogi\RookPFlip.bmp"
    Black "images\Shogi\SHaag\RookP.bmp" "images\Shogi\IntlSHaag\RookP.bmp" "images\Shogi\RookP.bmp")
  (help "Promoted Rook (Ryu-O): makes a Rook move or steps 1 square diagonally.")
  (description
   "Promoted Rook (Ryu-O or `Dragon King`)\
   Moves any number of squares orthogonally on a rank or a file,
   or makes a single step diagonally to an adjacent square.
   It may not leap over other pieces."
  )
  (moves
   (move-type no-king)
   (slide n)
   (slide s)
   (slide e)
   (slide w)
   (shift nw)
   (shift ne)
   (shift sw)
   (shift se)
   (drop play-zone)
  )
 )

  • 玉将の駒を設定するブロック:
 (piece
  (name King)
  (image
   White "images\Shogi\SHaag\KingFlip.bmp" "images\Shogi\IntlSHaag\KingFlip.bmp" "images\Shogi\KingFlip.bmp"
   Black "images\Shogi\SHaag\King.bmp" "images\Shogi\IntlSHaag\King.bmp" "images\Shogi\King.bmp")
  (help "King (Gyokusho): steps 1 square in any direction to a safe square")
  (description
   "King (Gyokusho)\
   A Shogi King can take a single step in any direction, just as in Western Chess.
   It does not promote.
   The King may not allow itself to move where it can be taken by the opponent.
   The object of Shogi is to checkmate the enemy King."
  )
  (moves
   (move-type with-king)
   (shift nw)
   (shift n)
   (shift ne)
   (shift e)
   (shift w)
   (shift sw)
   (shift se)
   (shift s)
  )
 )

※画像を複数設定しておくと、「Switch Piece Set」で駒の画像を一斉に切り替えられます。


最終更新:2020年08月29日 16:46