Shogi notation


Shogi notation is the set of various abbreviatory notational systems used to describe the piece movements of a shogi game record or the positions of pieces on a shogi board.
A game record is called a 棋譜 kifu in Japanese.

Recording moves

Western notation

The system used in English language texts to express shogi moves was established by George Hodges and Glyndon Townhill in 1976 by the second issue of Shogi magazine.
A slightly modified version was used in Hosking. It is derived from the algebraic notation used for chess, but differs in several respects. A typical move might be notated P86 or P-8f. The notation format has the following 5 part structure:
An example using all 5 parts is S72x83+ or S7bx8c+. All parts are obligatory except for the origin and promotion parts. The origin part is only indicated when needed to resolve ambiguity. The promotion part is only needed when there is the possibility of promotion.
Western notation is not used in Japanese language texts, as it is no more concise than traditional notation with Japanese characters and two ciphers which originated in the Edo period.

Piece

The first letter represents the piece moved. For instance, P is for Pawn. Below are the abbreviations used.
Promoted pieces are indicated by a + preceding the letter. For example, +P is a promoted pawn, +R is a promoted rook.
Some Japanese websites and Japanese authors use two different abbreviations for the promoted rook and promoted bishop in a way more similar to Japanese notation. Thus, D instead of +R and H instead of +B.

Ambiguity resolution: Origin coordinates

In cases where the moving piece is ambiguous, the starting square is added after the letter for the piece but before the movement indication.
For example, in diagrams below, Black has three golds which can move to square 78. Thus, simply notating G-78 is not enough to indicate the move. The three possible moves are distinguished via the origin specification as G77-78, G68-78, or G79-78.

Movement type

Following the abbreviation for the piece is a symbol for the type of move. There are 3 different indications:
As examples, P-24 indicates moving one's pawn to the 2d square, Px24 indicates moving one's pawn to the 24 square and capturing the opponent's piece that was on 24, and P*24 indicates dropping one's pawn in hand to the previously empty 24 square.
There is some variation for the drop symbol. A * is often used, but some books use a instead. Thus, Hosking B’56 is equivalent to Hodges B*5f.
The simple movement indication is not used by Hosking who does not use a movement symbol. Thus, Hosking P26 is equivalent to Hodges P-2f.

Destination coordinates

After the movement piece indication is the square on which the piece lands. This is indicated by a numeral for the file and the rank, with 11 being the top right corner from Black's perspective and 99 being the bottom left corner. This is based on Japanese notation conventions.
Hosking differs from Hodges in that Hosking uses numerals for the rank notation whereas Hodges uses letters for the rank.

Promotion status

If a move entitles the player to promote, then a + is added to the end if the promotion was taken or an = if it was declined. For example, Nx73= indicates an unpromoted knight capturing on 73 without promoting while Nx73+ indicates an unpromoted knight capturing on 73 and promoting. The promotion status is always omitted in situations where promotion is not possible. When promotion is possible, then the promotion status is obligatorily notated.

Other conventions

Game moves in western notation are always numbered. Additionally, what is numbered are pairs of two moves – the first move by Black, the second by White – instead of numbering each move by each player. This also differs from the Japanese system. For instance, three pairs of moves are numbered as 1.P-76 P-34 2.P-26 P-44 3.S-48 S-32. However, in the British Shogi magazine of the 1970s and 1980s, the pair number convention was not used for tsumeshogi problems, in which case the each player's move is number just as in the Japanese notation conventions.
Following western chess conventions, omitted moves are indicated with an ... ellipsis. As a consequence of the way moves are numbered in the western system, all moves by White are notated with an ellipsis prefix in texts. For example, ...P-55 indicates a move by White while P-55 indicates a move by Black. In handicap games, White plays first, so Black's first move is replaced by an ellipsis. For example, 1...G-32 2.P-76 G-72.
Unlike western chess, game states like check or checkmate are not typically notated. However, the use of question marks and exclamation points to indicate questionable and good moves, respectively, are occasionally used.

Japanese notation

The earliest way to indicate game records in Japan during the Edo period was to use descriptive sentences such as Open the bishop's diagonal, push the rook's pawn, close the bishop's diagonal and the like. Soon afterward, a notational system was developed which is mostly the same as what is used in the present day in Japan.

Current standard

In Japanese notation, the notation string has the following five-part format:
A typical move is indicated like 8六歩. An example that uses all five parts is ☗8三銀引成. The player's side information is optional and the movement and promotion indications are only used in order to resolve ambiguity.
Player's side
It is common for the White and Black player to be indicated at the beginning of the notation string with either black and white triangles or shogi-piece-shaped pentagons, such as ▲7六歩△3四歩▲2六歩△3二金 or ☗7六歩☖3四歩☗2六歩☖3二金. However, this is not obligatory: several books notate shogi moves without explicit indication of which player is making the moves. In such cases, knowing which player the move refers to can be determined by the context in the book. This white/black convention is more common when the moves are not numbered.
Destination coordinates
For the board's coordinates, the file is indicated with an Arabic numeral followed by the rank indicated with a Japanese numeral. For example, square 23 in Japanese notation is 2三.
Earlier, only Japanese numerals were used for both file and rank coordinate.
There is also an abbreviatory convention: when a piece moves to the same coordinates as the previous move's piece, the position is simply indicated with instead of the file-rank coordinate numbers. For example, if Black's pawn moved to a square in which White's pawn captured Black's pawn and then both players' bishops recaptured followed by a rook recapture, this could be notated as ☗2四歩 ☖同歩 ☗同角 ☖同角 ☗同飛 which would be equivalent to the western notation sequence 1.P-24 Px24 2.Bx24 Bx24 3.Rx24. always implies a capture. In some cases where the coordinates may be forgotten by the reader, then the number coordinates will precede to aid the reader like this: ☖2四同歩. An alternate symbol is used instead of in older books.
It is also possible to encounter Arabic numerals for both the file and rank coordinates, such as ☗24歩 instead of ☗2四歩.
Also, since Japanese is often written vertically from top to bottom, the notation may be written vertically as well with the top number indicating the file and rank number below the file number. Finally, in older books of the Edo period, the notation may be written from right to left even when the notation is written horizontally. However, this older practice is not used in the modern period, where horizontally writing is read from left to right following European language traditions.
Piece
Pieces are indicated with kanji. The piece's kanji follows the piece's board coordinates. The following symbols are used.
Promoted pieces are indicated with a prefix except for the promoted pawn, promoted bishop, and promoted rook, which are , , , respectively. is used instead of in some older texts.
In tsumeshogi, the character is used essentially as a variable that represents a piece of any value. It is used to indicate to an interposing piece that is placed between the king and the opponent's checking piece.
Ambiguity resolution: Movement description
When there is ambiguity in piece movement, there is a complex system of movement description using the symbols below. The movement descriptors consist of a dropped piece indicator, movement toward destination indicators, and movement origin indicators.
The symbol for a dropped piece is following the piece's character. In the usual course of a game, most dropped pieces will probably be unambiguous. In these unambiguous cases, explicit notation for the dropped piece is not required and usually omitted. For example, a western notation such as P*23 will be notated simply as 2三歩 instead of 2三歩打. In other situations, there is a possibility that either a piece that is already in play on the board can move to a certain square or a piece of the same kind that is held in hand can be dropped to that square. In this case, when the piece on the board moves to that square, the notation simply notates the move as usual with no drop indication. However, when the piece in hand is dropped to that location, then the drop indication must be present in the notation in order to resolve the ambiguity. In other words, is only used when the following two conditions are met: a piece is dropped and there is ambiguity with another piece on the board.
For ambiguity resolution with pieces on the board, the main notation symbols are for downward movement, for horizontal movement, and for upward movement. Note that these three indicators describe movement toward their destination square.
In the example below, three golds can move to the 7八 square. The gold that originates on 7七 and moves down is notated as 7八金引. The other two possibilities are notated as 7八金寄 and 7八金上.
The and indicate downward and upward movement, respectively, that can be both vertical as well as diagonal.
There are two less common alternate symbols used instead of : and . However, these alternate symbols are reserved for indicating only the two most powerful promoted dragon 龍 and horse 馬 pieces. Thus, 5五龍行 or 5五龍入 instead of 5五龍上, but not 5五金行 or 5五金入.
In certain situations, an indication of movement toward the destination square is not sufficient to resolve ambiguity. In these cases, the origin square of the piece is notated with a relative positional indicator. These are for a piece moving from the right and for a piece moving from the left.
This positional information is relative to each player's directions. Thus, △5二金右 refers to the silver on the right from White's perspective.
In the special case of golds and silvers as well as promoted pieces with gold-like movements, it is possible for there to be a three-way ambiguity in upward movement. In this case, a third positional origin indicator is used: for vertical movement.
Additionally, this indicator tends to always be used for vertical movement even when simply using and would suffice. Relatedly, tends to be used only for golds and silvers and not for other pieces.
Promotion
A piece that promotes is indicated with following the piece's character, such as 7三桂成. If a piece does not promote, this is indicated with 不成 following the piece's character, such as 7三桂不成. There is an alternate symbol for non-promotion: is sometimes used instead of 不成.
Numbering
Unlike western notation, numbering Japanese game records is not obligatory. Although players' moves often are not numbered, shogi moves are always counted per player's move. This is commonly seen in checkmate problems where a 3-move checkmate problem would mean a move sequence of black-white-black. This is unlike western chess which counts each pair of moves as one move.
Game end
Shogi games are officially over when a player formally resigns. The resignation is notated as 投了 tōryō. Other possible endings include rare 千日手 draw by repetition, 反則手 illegal move, and the very rare 持将棋 draw by impasse.
Other conventions
Unlike western notation, a capture of a piece is never explicitly notated in the Japanese system since the capture can be understood in the context of the game. However, when is used, it always implies a capture. So, in this sense is a notated capture. But, other captures of pieces that do not have the same coordinates as the preceding move are simply not indicated in the notation system.
Shorthand
In addition to the usual kanji symbols, there are also shorthand versions of piece symbols that can be written very quickly. For several of the symbols, there is variation in what shorthand symbol is used – the ones listed here may not be exhaustive of all the alternatives used in Japan.

Iroha notation

A notation used in older times was the iroha notation. It used the syllables of the Japanese poem Iroha to label each square on the shogi board.
For example, the 23 square was indicated by the symbol . Tokugawa Ieharu favored this notational system. Therefore, it was used for all castle game records during his reign.

Kitao–Kawasaki notation

The Kitao–Kawasaki notation is a hybrid notation introduced by the Nekomado publishing company in English translations of shogi books by Madoka Kitao and Takashi Kaneko. The system incorporates elements of both the western and the Japanese notation systems.
The order of elements is the same as the western system except that a player's side argument is added.
A typical move is indicated like ☗歩-86. An example that uses all 6 parts is ☗銀x83+.

Comparison examples

As an example, a Tempo Loss Bishop Exchange game might proceed and be notated like this:
Western-style NotationJapanese-style Notation-

Below is another notated game showing the more typical Japanese notation where moves are not numbered, dropped pieces are not indicated, and white/black turns are marked. It also shows an example of ambiguity resolution and a piece entering a promotion zone that remains unpromoted.
Western Western JapaneseKitao–Kawasaki

Recording games and positions

SFEN

SFEN is an extension of Forsyth–Edwards Notation used for describing board positions of shogi games.
Formally, an SFEN is a text string of ASCII characters. It has three fields that are separated by a space. The fields:
  1. Piece placement on the board from Black's perspective
  2. Who has the next move
  3. Pieces in hand
The following is an example
In this example, the first field is lnsgk2nl/1r4gs1/p1pppp1pp/1p4p2/7P1/2P6/PP1PPPP1P/1SG4R1/LN2KGSNL, the second is b, and the last is Bb.
For the first field, each piece is represented with a single letter. Gote's pieces are lowercase letters while Sente's pieces are uppercase letters. The set of letters used are the same as the ones used in western notation. Each rank is separated by a forward slash. The listing of ranks is from top to bottom, and the order to pieces is from file 9 to file 1. Empty squares are indicated with numeral corresponding to the number of adjacent empty squares on the same rank. In the example, rank a is lnsgk2nl which indicates sequence of lance, knight, silver, gold, king followed by two empty squares to the right of the king and a sequence of knight and lance.
The second field can be either b for Black's turn to play or w for White's turn to play. In the example, b indicates that Black has the next move.
The third field contains all of the pieces in hand held by each player. In the example, the Bb indicates that Black has one bishop in hand, and White also has one bishop in hand. In SFEN holdings, if there are more than one piece of a type in hand, it is preceded by the piece count, e.g. 3P for three pawns in hand.
Below is another example showing the board position for Yoshiharu Habu's famous 52 silver drop in an NHK game with Hifumi Katoh.

KIF

The KIF file format is used for saving full games of shogi. Internally, it uses Japanese notation in the UTF-8 text encoding, and each move is disambiguated with an origin square.

KI2

The KI2 file format is similar to the KIF format but more compact. Moves are only disambiguated with the standard Japanese relative direction kanji.

CSA

Another format for saving positions and games of shogi, which only uses ASCII internally. Mostly used in the computer shogi arena.

PSN

Portable Shogi Notation is a derivative of the Portable Game Notation used in chess, is expanded to specify shogi pieces and drops. It uses the Hodges coordinate system. It has little support outside of GNU Shogi.
GNU Shogi also uses EPD instead of SFEN: the same board description, but with holdings appended in square brackets. Each held piece is listed, e.g. PPP for three pawns in hand. The following field for player to move has colors reversed from SFEN: w for sente, and b for gote.
OWIKI.org. Text is available under the Creative Commons Attribution-ShareAlike License.