How to post chess games
Posted: Wed Jun 09, 2010 4:46 pm
OpenChess has implemented a JavaScript-based software (pgn4web) to display chess games and positions within the forum body. Using them is easy: it works just like other BBCode markup.
looks like this:
1r3rk1/p3pp1p/6p1/3pqb2/Q7/4P1P1/P4PBP/2RR2K1 b - - 0 19
and
will display
[Event "Miscellaneous Game"]
[Site "?"]
[Date "1620.??.??"]
[EventDate "?"]
[Round "12"]
[Result "0-1"]
[White "NN"]
[Black "Gioachino Greco"]
[ECO "C50"]
[WhiteElo "?"]
[BlackElo "?"]
[PlyCount "26"]
1.e4 e5 2.Nf3 Nc6 3.Bc4 Bc5 4.O-O Nf6 5.Re1 O-O 6.c3 Qe7 7.d4
exd4 8.e5 Ng4 9.cxd4 Nxd4 10.Nxd4 Qh4 11.Nf3 Qxf2+ 12.Kh1 Qg1+
13.Nxg1 Nf2# 0-1
(you can also skip all of the info in []s above, e.g.
if you don't want all of the headers...)
1.e4 e5 2.Nf3 Nc6 3.Bc4 Bc5 4.O-O Nf6 5.Re1 O-O 6.c3 Qe7 7.d4
exd4 8.e5 Ng4 9.cxd4 Nxd4 10.Nxd4 Qh4 11.Nf3 Qxf2+ 12.Kh1 Qg1+
13.Nxg1 Nf2#
This is all in progress. Appearance will probably change a bit over time, but the basic functionality is all there.
Jeremy
Code: Select all
[fen]1r3rk1/p3pp1p/6p1/3pqb2/Q7/4P1P1/P4PBP/2RR2K1 b - - 0 19[/fen]
1r3rk1/p3pp1p/6p1/3pqb2/Q7/4P1P1/P4PBP/2RR2K1 b - - 0 19
and
Code: Select all
[pgn]
[Event "Miscellaneous Game"]
[Site "?"]
[Date "1620.??.??"]
[EventDate "?"]
[Round "12"]
[Result "0-1"]
[White "NN"]
[Black "Gioachino Greco"]
[ECO "C50"]
[WhiteElo "?"]
[BlackElo "?"]
[PlyCount "26"]
1.e4 e5 2.Nf3 Nc6 3.Bc4 Bc5 4.O-O Nf6 5.Re1 O-O 6.c3 Qe7 7.d4
exd4 8.e5 Ng4 9.cxd4 Nxd4 10.Nxd4 Qh4 11.Nf3 Qxf2+ 12.Kh1 Qg1+
13.Nxg1 Nf2# 0-1
[/pgn]
[Event "Miscellaneous Game"]
[Site "?"]
[Date "1620.??.??"]
[EventDate "?"]
[Round "12"]
[Result "0-1"]
[White "NN"]
[Black "Gioachino Greco"]
[ECO "C50"]
[WhiteElo "?"]
[BlackElo "?"]
[PlyCount "26"]
1.e4 e5 2.Nf3 Nc6 3.Bc4 Bc5 4.O-O Nf6 5.Re1 O-O 6.c3 Qe7 7.d4
exd4 8.e5 Ng4 9.cxd4 Nxd4 10.Nxd4 Qh4 11.Nf3 Qxf2+ 12.Kh1 Qg1+
13.Nxg1 Nf2# 0-1
(you can also skip all of the info in []s above, e.g.
Code: Select all
[pgn]1.e4 e5 2.Nf3 Nc6 3.Bc4 Bc5 4.O-O Nf6 5.Re1 O-O 6.c3 Qe7 7.d4
exd4 8.e5 Ng4 9.cxd4 Nxd4 10.Nxd4 Qh4 11.Nf3 Qxf2+ 12.Kh1 Qg1+
13.Nxg1 Nf2#[/pgn]
1.e4 e5 2.Nf3 Nc6 3.Bc4 Bc5 4.O-O Nf6 5.Re1 O-O 6.c3 Qe7 7.d4
exd4 8.e5 Ng4 9.cxd4 Nxd4 10.Nxd4 Qh4 11.Nf3 Qxf2+ 12.Kh1 Qg1+
13.Nxg1 Nf2#
This is all in progress. Appearance will probably change a bit over time, but the basic functionality is all there.
Jeremy