Static game examples
This is a game played between Anatoly Karpov and Gary Kasparov at the 31st World Championship in Moscow. The PGN file, along with the special surrounding div tags used by the Chess By Blog plugin, looks like this:
<div class="CBB-board" style="display:hidden;"> [Event "World Championship 31th"] [Site "Moscow RUS"] [Date "1984.09.24"] [Round "5"] [White "Karpov, Anatoly"] [Black "Kasparov, Gary"] [Result "1/2-1/2"] 1.e4 c5 2.Nf3 d6 3.d4 cxd4 4.Nxd4 Nf6 5.Nc3 a6 6.Be2 e6 7.O-O Be7 8.f4 O-O 9.Kh1 Qc7 10.Bf3 Nc6 11.a4 Re8 12.Be3 Rb8 13.Re1 Bd7 14.Qd3 Nxd4 15.Bxd4 e5 16.Ba7 Rbc8 17.Be3 Qc4 18.a5 h6 19.h3 Bf8 20.Bd2 Qd4 21.Be3 Qb4 1/2-1/2 </div>
The position after the 21st move by Black is drawn below by the Chess By Blog plugin.
The plugin preserves and displays comments in the PGN movelist. Here is a heavily annotated game between Anderssen and Kizeritzky with the starting position shown at the beginning of the game.
The plugin supports Forsyth-Edwards Notation (FEN), which allows for descriptions of arbitrary starting positions – this is useful for setting up chess problems which are outside normal play. The plugin also fully supports Fischer Random Chess (Chess960) and the castling rules specific to that variant. As an example, here is the position after 7 moves for the final match of the Mainz Chess Classic Chess960 tournament in 2007 between Viswanathan Anand and Levon Aronian. The opening position is described using the FEN tag:
[FEN "rnbkqnrb/pppppppp/8/8/8/8/PPPPPPPP/RNBKQNRB w KQkq - 0 1"]
Interactive open game examples
In this second example, the board is blank but now interactive. The presence of the special CBBWhiteId and CBBBlackId PGN tags control who get to play.
<div class="CBB-board" style="display:hidden;"> [CBBWhiteId "*"] [CBBBlackId "*"] </div>
You should be able to play a game against yourself below. Your moves are not persistent, and will not update this post in the database.
The plugin also has limited support for chess variants with different board sizes, and for Capablanca variants (in particular, Capablanca Random Chess). The Archbishop and Chancellor pieces are fully supported, and can be specified together with a 8×10 board by using a FEN tag like this:
[FEN "rnbqkcabnr/pppppppppp/10/10/10/10/PPPPPPPPPP/RNBQKCABNR w KQkq - 0 1"]
Resulting in a playable board:
Interactive closed game example
Changing one or both of the CBBWhiteId and CBBBlackId tags to the userid of a WordPress blog author who has edit permissions on the post (as shown below) will allow them to make a move that will be posted to the blog immediately. In the example shown, the WordPress user “levork” will be able to play White against the WordPress user “dantes”, assuming that both users have been created and have the appropriate WordPress roles. The game will be closed to all other readers.
<div class="CBB-board" style="display:hidden;"> [CBBWhiteId "levork"] [CBBBlackId "dantes"] </div>