Check out Symmetric Chess, our featured variant for March, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

Shogi. Play the Japanese form of Chess, in which captured pieces can be dropped back as your own. (Recognized!)[All Comments] [Add Comment or Rating]
🕸📝Fergus Duniho wrote on Thu, Nov 19, 2015 06:11 PM UTC:
The code for displaying legal moves in Shogi appears to be working correctly now. The last touch was to make it recognize when a Pawn cannot be dropped because it would checkmate the King.

Since this uses separate subroutines for checkmate and stalemate, I'm wondering if there is a circumstance in which a Pawn drop could, if it wern't illegal, simultaneously block a check on one's own King and checkmate the opponent's King. I'm thinking that a Pawn drop could both block a check and check the opponent's King only when checked by a Rook or Dragon King on the same rank or a Bishop or Dragon Horse attacking diagonally. Normally, the piece that had been attacking the King could capture the Pawn whose drop blocked its check. But if that piece were pinned, it could not. Can anyone come up with an example I can use for testing?

I have noticed that adding the ability to display moves helps me in spotting bugs. In working on this, I have corrected some bugs in the Shogi include file.