Style 12

Style 12 is a type of machine parseable output that many of the FICS interfaces use. The output is documented here for those who wish to write new interfaces. Style 12 is also fully compatible with ICC (The Internet Chess Club).

The data is all on one line (displayed here as two lines, so it will show on your screen). Here is an example: [Note: the beginning and ending quotation marks are not part of the data string; they are needed in this help file because some interfaces cannot display the string when in a text file.]

<12> rnbqkb-r pppppppp -----n-- -------- ----P--- -------- PPPPKPPP RNBQ-BNR
B -1 0 0 1 1 0 7 Newton Einstein 1 2 12 39 39 119 122 2 K/e1-e2 (0:06) Ke2 0

This string always begins on a new line, and there are always exactly 31 non- empty fields separated by blanks. The fields are:

In the future, new fields may be added to the end of the data string, so programs should parse from left to right.

Special information for bughouse games


When showing positions from bughouse games, a second line showing piece holding is given, with at the beginning, for example:

<b1> game 6 white [PNBBB] black [PNB]

Also, when pieces are “passed” during bughouse, a short data string – not the entire board position – is sent. For example:

<b1> game 52 white [NB] black [N] <- BN

The final two letters indicate the piece that was passed; in the above example, a knight (N) was passed to Black.

A prompt may preceed the header.