This post describes the way to end the game of shogi.
The Purpose of the Shogi Game
The purpose of the game is to capture the opponent's king.
What is Oute; Check
As shown on the lower figure, if the gold general moves forward, the opponent's king is under threat of capture. A "check" is a condition that occurs when a king is threatened with capture on the next turn like the lower figure. A check is called "王手(Oute)" in Japanese.
If the King is in Check
A player must avoid having the king captured if the king is in check.
Consider how the checked player avoids having the king captured in the upper figure. For example, if the king moves one square forward, the checked player can get out of check as shown in the lower figure.
Consider the case as shown in the lower figure. A player checked the opponent's king with the gold general.
In the case shown in the upper figure, the opponent cannot get out of check. Such a condition is called "checkmate" or "tsumi (詰み)."
A player wins a game if checkmating the opponent's king.
The Way to End the Game
Basically, the game of shogi ends if one side of players checkmates the opponent's king. Types of the game ends are as follows
1. Checkmating the King of Opponent
A player wins a game when checkmating the king of the opponent.
2. The Opponent does not Get out of Check
A player win a game when the opponent didn't notice that the opponent's king is checked and does not get out of check.
3. The Opponent Resigns
A player wins a game when the opponent resigns.