How to post chess games

General discussion about computer chess...
Jeremy Bernstein
Site Admin
Posts: 1226
Joined: Wed Jun 09, 2010 7:49 am
Real Name: Jeremy Bernstein
Location: Berlin, Germany
Contact:

Re: How to post chess games

Post by Jeremy Bernstein » Tue Jan 18, 2011 7:25 am

Uly wrote:Okay, at this post:

http://www.open-chess.org/viewtopic.php ... 8822#p8822

I posted the game using pgnlast tags, however, I see the penultimate move highlighted (and position shown) instead of the last move.
Thanks, should be fixed now.

Jeremy Bernstein
Site Admin
Posts: 1226
Joined: Wed Jun 09, 2010 7:49 am
Real Name: Jeremy Bernstein
Location: Berlin, Germany
Contact:

Re: How to post chess games

Post by Jeremy Bernstein » Tue Jan 18, 2011 7:37 am

Uly wrote:Great! I haven't found any problems.
Jeremy Bernstein wrote:Live variations support is now live. You can toggle them on and off with the '-' key.
Pressing the '-' key doesn't do anything around here.
Here's a game with variations higher up in the move list. They should be in green text, in [brackets]. When you've selected the game widget, the - key will fold and unfold the variations. This might only be on a US keyboard, but I don't think so.

Jeremy

[Event "WCh"]
[Site "Bonn GER"]
[Date "2008.10.17"]
[Round "3"]
[White "Kramnik,V"]
[Black "Anand,V"]
[WhiteElo "2772"]
[BlackElo "2783"]
[Result "0-1"]
[ECO "D49"]
[Annotator "IM Malcolm Pein"]
[EventDate "2008.10.14"]

{The first decisive game of the match}
1. d4 d5 2. c4 c6 3. Nf3 Nf6 4. Nc3 e6 5. e3 Nbd7 6. Bd3 {Kramnik invites the
sharp Meran Variation which he has aso played himself with Black} dxc4 7. Bxc4
b5 8. Bd3 a6 9. e4 c5 10. e5 cxd4 11. Nxb5 axb5 12. exf6 gxf6 13. O-O Qb6 14.
Qe2 Bb7 {
A brilliant novelty. Previously Black defended the b5 pawn with Ba6 or b4} 15.
Bxb5 Bd6 {Intending Ke7 Rg8 and Ne5 with a winning attack} 16. Rd1 ({
It's already too late to play safe. If} 16. Bd3 Rg8 17. Be4 Nc5 18. Bxb7 Qxb7 {
d4-d3 looms large}) 16... Rg8 17. g3 {Obviously very risky but} (17. Bd3 Ne5
18. Be4 d3 $1) (17. Rxd4 Rxg2+ 18. Kxg2 Qxd4 {are both good for Black}) 17...
Rg4 18. Bf4 (18. Nd2 Ke7 $3 19. Bxd7 (19. Qxg4 Qxb5) 19... Rag8 $1 20. Bb5 d3
21. Qxd3 Rxg3+ 22. hxg3 Rxg3+ 23. Kf1 Rxd3 24. Bxd3 Qd4 {is unclear}) 18...
Bxf4 19. Nxd4 {
Kramnik commits to a piece sacrifice but perhaps 19.Rxd4 was better} (19. Rxd4
O-O-O (19... Bxf3 20. Qxf3 Qxd4 21. Rd1 $1) 20. Rad1 Bxf3 21. Qxf3 Qxb5 22.
Qxg4 Bc7) 19... h5 $1 20. Nxe6 fxe6 21. Rxd7 Kf8 22. Qd3 Rg7 $1 23. Rxg7 Kxg7
24. gxf4 Rd8 25. Qe2 Kh6 $1 26. Kf1 (26. f5 Rg8+ 27. Kf1 Bg2+ 28. Ke1 Bc6 29.
Qd2+ Kh7 30. Bxc6 Qxc6 $1 31. Ke2 Qb5+ 32. Kf3 Rg4 {wins}) 26... Rg8 27. a4 $2
(27. Rc1 Bg2+ 28. Ke1 Bh3 29. f5 $1 Rg1+ 30. Kd2 Qd4+ 31. Bd3 Qxb2+ 32. Rc2 {
survives}) 27... Bg2+ 28. Ke1 Bh3 $1 29. Ra3 (29. Rd1 Bg4 30. Qe3 Qxe3+ 31.
fxe3 Bxd1 32. Kxd1 Rg2) 29... Rg1+ 30. Kd2 Qd4+ 31. Kc2 (31. Rd3 Qxb2+ 32. Ke3
Qa1 {wins, Re1 follows}) 31... Bg4 32. f3 Bf5+ 33. Bd3 $4 (33. Kb3 Rc1 34. a5
Bc2+ 35. Qxc2 $1 Rxc2 36. Kxc2 Qc5+ 37. Kb1 Qxb5 38. a6 {
saves the game but Black can also play}) (33. Kb3 Rc1 34. a5 Qd5+ 35. Bc4 Qb7+
36. Bb5 Rc5) 33... Bh3 $2 {Amazing, Vishy misses} (33... Bxd3+ 34. Rxd3 (34.
Qxd3 Rg2+) 34... Qc4+ 35. Kd2 Qc1) 34. a5 {Kramnik has one swindling idea left
} Rg2 35. a6 Rxe2+ 36. Bxe2 Bf5+ 37. Kb3 Qe3+ 38. Ka2 Qxe2 39. a7 Qc4+ 40. Ka1
Qf1+ 41. Ka2 Bb1+ (41... Bb1+ 42. Kb3 Qxf3+ 43. Kb4 Qxf4+ 44. Kc3 Be4) 0-1

User avatar
Uly
Posts: 838
Joined: Thu Jun 10, 2010 5:33 am

Re: How to post chess games

Post by Uly » Sat Feb 05, 2011 9:50 am

I posted a PGN with many games, and nothiced a buggy thing, and a possible improvement of behavior.

The first:

Image

(note I'm at 800x600 res)

The << < + > >> arrows seem missing. Also, the scrollbar going down seems to be cut off.

The improvement on behavior is having it remember what game one is seeing, currently, a ... appears at the top, and if one e.g. clicks on the third game, after clicking the box again ... is highlighted instead of the third game, so navigation is hard as one would need to memorize what game was previously clicked.

BB+
Posts: 1484
Joined: Thu Jun 10, 2010 4:26 am

Re: How to post chess games

Post by BB+ » Sat Feb 05, 2011 9:57 am

The << < + > >> arrows seem missing. Also, the scrollbar going down seems to be cut off.
Yes, this usually happens when they are multiple games. I usually end up having to use the arrow keys to reach the game's end in some cases.

User avatar
Uly
Posts: 838
Joined: Thu Jun 10, 2010 5:33 am

Re: How to post chess games

Post by Uly » Sat Feb 05, 2011 10:05 am

Okay, so this isn't exclusive to 800x600 res :)

Jeremy Bernstein
Site Admin
Posts: 1226
Joined: Wed Jun 09, 2010 7:49 am
Real Name: Jeremy Bernstein
Location: Berlin, Germany
Contact:

Re: How to post chess games

Post by Jeremy Bernstein » Sat Feb 05, 2011 11:23 am

Uly wrote:Okay, so this isn't exclusive to 800x600 res :)
Thanks for the report, I'll check it out.

attakero
Posts: 1
Joined: Wed Feb 16, 2011 7:28 pm

Re: How to post chess games

Post by attakero » Wed Feb 16, 2011 7:31 pm

how to add board coordinates in pgn4web board generator? pls help

pgn4web
Posts: 97
Joined: Mon Jun 14, 2010 10:26 pm

Re: How to post chess games

Post by pgn4web » Wed Mar 09, 2011 2:54 pm

Hello, I had a look at the updates you did on the pgn4web code to add variation support.

I found a couple of bugs, that might affect your forum also:

1) mistakes in the PGN syntax are not handled gracefully, for instance this games trows a javascript exception and does not display anything at all:

Code: Select all

[White "someone"]
[Black "other"]

1. e4 c5 ( c4 ) 2. Nf3 *
See:

[White "someone"]
[Black "other"]

1. e4 c5 ( c4 ) 2. Nf3 *

2) some comments are lost, for instance the word "try" is lost from this game:

Code: Select all

[White "someone"]
[Black "other"]

1. e4 c5 ( { try } c6 { instead } ) 2. Nf3 *
See:
[White "someone"]
[Black "other"]

1. e4 c5 ( { try } c6 { instead } ) 2. Nf3 *

Jeremy Bernstein
Site Admin
Posts: 1226
Joined: Wed Jun 09, 2010 7:49 am
Real Name: Jeremy Bernstein
Location: Berlin, Germany
Contact:

Re: How to post chess games

Post by Jeremy Bernstein » Wed Mar 09, 2011 2:55 pm

pgn4web wrote:Hello, I had a look at the updates you did on the pgn4web code to add variation support.

I found a couple of bugs, that might affect your forum also:
Thanks! I'll fix that up.

jb

Jeremy Bernstein
Site Admin
Posts: 1226
Joined: Wed Jun 09, 2010 7:49 am
Real Name: Jeremy Bernstein
Location: Berlin, Germany
Contact:

Re: How to post chess games

Post by Jeremy Bernstein » Wed Mar 09, 2011 3:27 pm

Jeremy Bernstein wrote:
pgn4web wrote:Hello, I had a look at the updates you did on the pgn4web code to add variation support.

I found a couple of bugs, that might affect your forum also:
Thanks! I'll fix that up.

jb
OK, both of those problems are "fixed" (the second one really, the first one is just kind of fixed (throws errors because the PGN is bad, but loads the board and lets you begin to debug your game). I'll look more closely, time permitting, at a better solution for invalid PGN data.

Post Reply