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 . 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. (Thus, most notation strings only contain 3 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 (''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 ( ''tokin''), +R is a promoted rook (that is, a dragon ). Some Japanese websites (such as 81Dojo) and Japanese authors use two different abbreviations for the promoted rook and promoted bishop in a way more similar to Japanese notation. Thus, D (for ''dragon'') instead of +R and H (for ''horse'') instead of +B. Additionally, a promoted pawn can be encountered as T (for ''tokin'') instead of +P.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 (without capture), 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. (Note the x indication is a significant departure from Japanese notation, which has no way of signaling whether a piece was captured.) There is some variation for the drop symbol. A * (asterisk) is often used, but some books (e.g. use a ’ (apostrophe) instead. Thus, Hosking B’56 is equivalent to Hodges B*5f. The simple movement indication (the hyphen -) is not used by 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 (1–9) and the rank (1–9), 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 (a–i) 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 (unlike Japanese game records). 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 (or six individual 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 forJapanese notation
The earliest way to indicate game records in Japan during theCurrent standard
In Japanese notation, the notation string has the following five-part format: : A typical move is indicated like (equivalent to western P-86). An example that uses all five parts is (which could be either S72-83+ or S72x83+ in western notation). 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 (''gote'') and Black (''sente'') player to be indicated at the beginning of the notation string with either black and white triangles () or shogi-piece-shaped pentagons (), such as or . However, this is not obligatory: several books notate shogi moves without explicit indication of which player is making the moves. (See the adjacent image for an example.) 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 (which is also optional to notate).=Destination coordinates
= For the board's coordinates, the file is indicated with an Arabic numeral followed by the rank indicated with a=Piece
= Pieces are indicated with kanji (instead of letters as in the western system). 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. The character for dragon can also be encountered as its=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) a dropped piece indicator, (b) movement toward destination indicators, and (c) 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 (unlike in western notation where the drop notation is obligatory). For example, a western notation such as P*23 will be notated simply as instead of . 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: (i) a piece is dropped and (ii) 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 square. The gold that originates on and moves down is notated as (= G77-78). The other two possibilities are notated as (= G68-78) and (= G79-78). 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, or instead of , but not or . In certain situations, an indication of movement toward the destination square (that is, with , , ) 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 thus moving leftward) and for a piece moving from the left (rightward). This positional information is relative to each player's directions. Thus, (literally: "white 5-2 gold right") refers to the silver on the right from White's perspective (which would be on the left from Black'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 (straight up) movement. Additionally, this indicator tends to always be used for vertical movement even when simply using ("right") and ("left") 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 (N-73+). If a piece does not promote, this is indicated with following the piece's character, such as (N-73=). There is an alternate symbol for non-promotion: is sometimes used instead of – for instance, 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. (In western notation for shogi, the move numbering tends to follow western chess notation conventions.)=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
=Iroha notation
A notation used in older times was the ''iroha'' notation. It used theKitao–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.Kaneko, Takashi. 2013. ''Storming the Mino castle.'' R Sams (transl.). Tokyo: Nekomado. 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 (western equivalent: P-86). An example that uses all 6 parts is (S72x83+ in western notation). ::Comparison examples
As an example, aRecording games and positions
SFEN
SFEN is an extension oflnsgk2nl/1r4gs1/p1pppp1pp/1p4p2/7P1/2P6/PP1PPPP1P/1SG4R1/LN2KGSNL b Bb
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 (p
, +p
, l
, +l
, n
, +n
, s
, +s
, g
, b
, +b
, r
, +r
, k
). Each rank is separated by a forward slash (/
). The listing of ranks is from top (rank 1) to bottom (rank 9), and the order to pieces is from file 9 to file 1 (in other words, from left to right as viewed on typical shogi diagram with gote as the top player and sente as the bottom player). Empty squares are indicated with numeral corresponding to the number of adjacent empty squares on the same rank. In the example, rank 1 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. Black's pieces in hand use capital letters while White's pieces in hand use lowercase. In the example, the Bb
indicates that Black has one bishop in hand (B
), and White also has one bishop in hand (b
). 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 ln1g5/1r2S1k2/p2pppn2/2ps2p2/1p7/2P6/PPSPPPPLP/2G2K1pr/LN4G1b w BGSLPnp
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.
See also
*Notes
References
Sources
* * * * * * * * * * * * {{cite book , last=Hosking , first=Tony , title=The art of shogi , year=1996 , publisher=The Shogi Foundation , isbn=978-0-95310-890-9External links
* 81Dojo