A published game without coded moves

At first sight the next game is just another example of a game published with the Blogspot Chess game Viewer, but this time I left the coded moves out. This became possible, because I have added a coded moves generator to the JavaScript code. However there are still some known issues.





The code used above is:
<SCRIPT language='JavaScript' type='text/javascript'>Game('','','1.e4 c5 2.f4 e6 3.Nf3 d5 4.Bb5+ Nc6 5.e5 a6 6.Bxc6+ bxc6 7.d3 Be7 8.c3 Nh6 9.O-O a5 10.d4 a4 11.Be3 Nf5 12.Qe2 c4 13.Qf2 Rb8 14.Bc1 Rb5 15.Nbd2 c5 16.Re1 h6 17.Nf1 cxd4 18.cxd4 g6 19.Ne3 Rg8 20.Nxf5 gxf5 21.Qc2 Bd7 22.Bd2 Bb4 23.Bc3 Rg4 24.Qd2 Qe7 25.h3 Rg7 26.Qf2 a3 27.Bxb4 Qxb4 28.bxa3 Qxa3 29.Rab1 Qc3 30.Rxb5 Bxb5 31.Rb1 Kd7 32.Rxb5 Qc1+ 33.Ne1 c3 34.Kh2 h5 35.Nd3 Qd1 36.Nb4 Qd2 37.Qf1 Qxd4 38.Rb7+ Kc8 39.Rb8+ Kc7 40.Na6+ Kd7 41.Qb5+ Ke7 42.Qb7# 1-0',1,5);</SCRIPT>

  • hi chess teacher! How about if I were to publish different games? would it be possible? Could I have multiple games posted on the same viewer which means that there would be a drop-down box menu for the games list? Thanks for your help.

  • It is not possible with the current version, but I suppose it will be possible to add this feature in one of the next versions. I'll add it to the wish list.

  • Hi chess teacher, could you please tell me where I did mistake in this posting : http://centralchessclub.blogspot.com/2010/02/bishop-pair-employed-to-weaken-enemy_22.html

  • @17ChessClub

    There is a line break in the FEN, some line breaks in the coded moves and the PGN contains quotation marks. Remove the line breaks and add a backslash in fron of the quotation marks.

    Because the coded moves aren't necessary anymore you may (initially) replace them by an empty string: ''.

  • Hello chess teacher! Thanks for your work on the game viewer. I've been experimenting with it a bit for another blog, and when trying to post some analysis, had this weird experience where the code seems to want to produce a 13x6 board! What would cause this? The post is:

    http://oddlittleaardvark.blogspot.com/2010/02/game82k51p1p1b21k6p72p588-b-0.html

    Thanks for any help!

  • @ Philip Sells

    Interesting chess board ;-)

    The FEN '82K6p1p1B3k6p81P885 1'
    has to be replaced by something like
    '8/2K5/p1pB3k/6p1/8/P7/8/8 1'

    I'm not sure about the actual position, but the main point is that the slashes have to be added

  • Hello again! I replaced the FEN as you suggested, and that does take care of the weird board shape. But now two questions remain at the same post: 1) what causes the move caption under the board to read 'NaN' etc. as each move is made, instead of a move number? 2) Why doesn't the viewer parse annotation marks like !, ?, etc. as PGN does? It will be annoying indeed if all of that has to be hand-corrected.

  • Regarding the NaN: the first argument '8/2K5/1p1p1B2/1k6/p7/2P5/8/8 b - - 0 1' has to be replaced by
    '8/2K5/1p1p1B2/1k6/p7/2P5/8/8 1'

    I'll add the parsing of annotation symbols like $11 in a future release.

  • Great stuff! I just discovered your blog and am adding it to my sidebar. Thanks for all the great advice -- I will have to explore your archive soon.

  • Hi,
    If start playing from move one instead of Nc6 it moves Nc8f3 so there is some bug there.
    Arun Singh

  • @Arun_Singh
    I am unable to reproduce the problem you mentioned.
    In order to start the game from the first move you only have the replace the last argument 5 by 0.
    Can you give me some more information or create a test page with the problem?

  • Hi! Chessteacher

    I experienced the very same problem that Arun mentioned when My IE 8's compatibility view is on.

  • @ Arun_Singh and Oblomov

    Thanks, now I succeeded in reproducing the problem. Indeed it is dependent on the browser and I need to do more testing ;-(

  • I think that the problem has been solved, but I haven't tested it with all (versions of all) browsers.

  • Very useful utility, Thanks for your contributions. I have used your PGN viewer in my blog and I have mentioned that I have used it from your site. Thanks again.