← StudyX Devlog

Mating a King on the Edge in Shogi: Kings on File 1 and File 9

Hiroki ObaraHiroki Obara · DeveloperShogi365How-To
Mating a King on the Edge in Shogi: Kings on File 1 and File 9

A king on the edge of the shogi board, on file 1 or file 9, is called 端玉 in Japanese, an edge king. One side of it is off the board, so it has five squares to move to at most. To mate it, the attacker covers the squares on the next file (file 2 for a king on file 1, file 8 for a king on file 9) and gives check on the edge file itself, with a pawn or lance already there or with a pawn or gold dropped from hand. This post shows that shape in two mates in 1 and one mate in 3.

What mate means and how to test for it is in What Is Tsumi in Shogi?, and the basic mates with a gold are in Basic Checkmate Shapes in Shogi. Lance mates are in Mating with the Lance in Shogi and bishop mates in Mating with the Bishop in Shogi.

An edge king has five squares, a corner king three

The king moves one square in any direction. A king in the middle of the board, on 5五, has eight neighbouring squares.

Squares are written the Japanese way: 1五 means file 1, rank 5. A king on 1五 has five neighbours: 1四, 1六, 2四, 2五 and 2六. The other three directions are off the board. A king in the corner on 1一 has three: 1二, 2一 and 2二. File 9 is the same. A king on 9五 has 9四, 9六, 8四, 8五 and 8六, and a king on 9一 has 9二, 8一 and 8二.

Three of the five squares are on the next file. The other two are on the edge file, in front of the king and behind it. Each example below goes through these five squares (three in the corner) one at a time.

How to tell it is mate

The diagrams on the Japan Shogi Association’s page on check and mate (in Japanese) show three ways to meet a check: the king moves, the checking piece is captured, or a piece is put in between. If none of the three is possible, it is mate.

In the positions below, the side giving check is the attacker and the side in check is the defender. Rank 1 is the defender’s back rank, and the attacker’s pieces move toward rank 1. Moves marked ▲ are the attacker’s and △ the defender’s. The pieces are 玉 (king), 金 (gold), 香 (lance), 桂 (knight), 歩 (pawn), 龍 (dragon, a promoted rook) and と (tokin, a promoted pawn). 成 means the piece promotes, 不成 means it does not, and 同 means a capture on the square just played. How to read the notation is in How to Read Tsume Shogi Solutions.

Example 1: the edge pawn promotes, with a lance behind it

The Association’s page on the pieces (in Japanese) says a pawn moves one square forward only, and that a promoted pawn, the tokin, moves the same way as a gold. Of the lance it says the piece moves forward any number of squares but cannot jump over other pieces.

Position: the defender’s king on 1一 and a defender’s knight on 2一. The attacker has a pawn on 1三 and a lance on 1九. Nothing in hand. Mate in 1.

The answer is ▲1二歩成, the pawn moving to 1二 and promoting.

The tokin on 1二 checks the king on 1一 straight ahead. The corner king has three neighbouring squares: 1二, 2一 and 2二.

  • 2一 is occupied by the defender’s own knight.
  • 2二 is covered by the tokin’s sideways move.
  • The king cannot take the tokin on 1二, because of the lance on 1九. While the pawn stood on 1三, the lance’s reach stopped at 1三. Once the pawn has moved to 1二, the squares from 1三 to 1八 are empty and the lance reaches 1二.

The knight on 2一 can jump only to 1三 or 3三, so it cannot take the tokin. The tokin is next to the king, so there is no square to put a piece in between. It is mate.

Moving to the same square without promoting, ▲1二歩不成, does not mate. A pawn covers only the square in front of it, so 2二 is open and the king escapes with △2二玉.

Without the lance on 1九, ▲1二歩成 is simply taken by the king. The lance in this position gives no check. It protects the square the pawn moves to, from behind.

Example 2: a dragon covers the next file, and the edge pawn is pushed

Position: the defender’s king on 9三 and a defender’s pawn on 8四. The attacker has a dragon on 7二, a knight on 8六 and a pawn on 9五. Nothing in hand. Mate in 1.

The answer is ▲9四歩, the pawn moving up one square.

The pawn on 9四 checks the king on 9三 straight ahead. The king has five neighbouring squares: 9二, 8二, 8三, 8四 and 9四.

  • 9二 and 8二 are covered by the dragon on 7二 along the rank.
  • 8三 is covered by the dragon’s one-square diagonal step.
  • 8四 is occupied by the defender’s own pawn.
  • The pawn on 9四 is protected by the knight on 8六. The king cannot take it.

The defender’s pawn on 8四 can only move straight ahead to 8五, so it cannot take the pawn on 9四. The pawn is next to the king, so nothing can be put in between. It is mate.

Of the three squares on file 8, the dragon covers two and the defender’s own pawn fills the third. Of the two squares on file 9, the dragon covers 9二 and the pawn, backed by the knight, takes 9四.

The dragon has five checks of its own: ▲8三龍, ▲8二龍, ▲9二龍, ▲7三龍 and ▲6三龍. In the first three the dragon is unprotected and the king takes it. After ▲7三龍 or ▲6三龍, 9二 is no longer covered and the king escapes with △9二玉.

Dropping the pawn from hand instead is uchifuzume

In shogi, captured pieces are kept in hand and can be dropped on an empty square as a move. Suppose the pawn in Example 2 were not on 9五 but in the attacker’s hand. Dropping it on 9四 would give the same final picture as the mate in Example 2. That move cannot be played.

The Association’s page on fouls (in Japanese) says that mating the opponent’s king by dropping a pawn from hand is a foul. This is uchifuzume (打ち歩詰め). The same page says that mating by moving a pawn already on the board, which it calls 突き歩詰め, is not a foul.

▲1二歩成 in Example 1 and ▲9四歩 in Example 2 both mate by moving a pawn on the board, so neither is a foul. A pawn on the same square is treated differently depending on whether it moved there or was dropped there. How to tell the shapes apart is in Uchifuzume Explained.

Example 3: the pawn is dropped first, then the gold mates

The page on fouls also says that giving check with a dropped pawn is not a foul in itself. A pawn can be dropped with check as long as the check is not mate.

Position: the defender’s king on 1二 and a defender’s lance on 2一. The attacker has a dragon on 2四. In hand: one pawn and one gold. Mate in 3.

The answer is ▲1三歩 △1一玉 ▲1二金.

Move 1, ▲1三歩. The pawn dropped on 1三 checks the king on 1二 straight ahead. The king has five neighbouring squares: 1一, 2一, 2二, 2三 and 1三.

  • 2二 and 2三 are covered by the dragon on 2四 along the file.
  • 2一 is occupied by the defender’s own lance.
  • The pawn on 1三 is protected by the dragon’s one-square diagonal step. The king cannot take it.
  • Nothing of the attacker’s covers 1一.

The lance on 2一 moves only along file 2, so it cannot take the pawn on 1三. The defender has one reply, △1一玉. Since one king move is left, ▲1三歩 is not mate, and so it is not uchifuzume.

Move 3, ▲1二金. The gold on 1二 checks the king on 1一 straight ahead. The corner king has three neighbouring squares: 1二, 2一 and 2二. The pawn on 1三 protects the gold on 1二, so the king cannot take it. 2一 is occupied by the lance. 2二 is covered by the gold’s sideways move. The lance on 2一 cannot move to 1二. It is mate.

With the pawn and the gold played in the other order, there is no mate. If the gold is dropped first, ▲1三金, the dragon protects it, the king cannot take it, and the king goes to △1一玉. Now a pawn dropped on 1二 would be protected by the gold on 1三, 2二 is covered by the dragon and 2一 is filled by the lance, so the king could not move. That is a mate by a pawn dropped from hand, which is uchifuzume, and the move cannot be played. No other check mates in that position either.

Dropping the gold on 2二 on the first move, ▲2二金, loses it to the lance on 2一: △同香.

What the three examples show

In Example 1, one of the corner king’s three squares was filled by the defender’s knight, and the promoted pawn and the lance behind it took care of the other two. In Example 2, the dragon and the defender’s pawn closed the three squares on file 8, and the dragon, the pawn and the knight closed the two squares on file 9. In Example 3, the dragon and the defender’s lance closed file 2, and a pawn and a gold were dropped on file 1 in that order.

In every example the three squares on the next file were closed first, and the last check came on the edge file. In Example 3, whether the pawn or the gold was dropped first decided whether the third move was uchifuzume. A way of reading by listing every check and every reply is in How to Solve 3-Move Tsume Shogi.

Download on the App Store Get it on Google Play

Shogi365A tsume shogi puzzle every day

You can solve tsume shogi on a board, starting with one-move problems. Three-move and five-move sets are there too.