How to post chess games

General discussion about computer chess...
Post Reply
pgn4web
Posts: 97
Joined: Mon Jun 14, 2010 10:26 pm

Re: How to post chess games

Post by pgn4web » Mon Jun 28, 2010 1:57 pm

Jeremy Bernstein wrote:

Code: Select all

[pgn]
[FEN "r2r2k1/5p1n/1pp1b2Q/p1p5/q3P2N/3P3P/1PP3P1/3RR1K1 w - - 0 23"]
[SetUp "1"]
23. Nf3! Qb4 24. Re3 Qxb2
25. e5 Qxc2 26. Rf1 Rxd3 27. Ne1 Rxe3 28. Nxc2 Rxe5 29. Qf4 f6 30. Qg3+ Rg5 31.
Qc7 Bxh3 32. Rf2 Rc8 33. Qxb6 Be6 34. Re2
[/pgn]
You need both the "FEN" and "SetUp" tags in order for this to work.
hmmm the problem must be somewhere else.

the PGN standard requires the SetUp tag to 1, but if FEN is present and SetUp is not there, then pgn4web is tolerant and it assumes as if SetUp = 1.

the following is without the SetUp tag in the input:

[FEN "r2r2k1/5p1n/1pp1b2Q/p1p5/q3P2N/3P3P/1PP3P1/3RR1K1 w - - 0 23"]
23. Nf3! Qb4 24. Re3 Qxb2
25. e5 Qxc2 26. Rf1 Rxd3 27. Ne1 Rxe3 28. Nxc2 Rxe5 29. Qf4 f6 30. Qg3+ Rg5 31.
Qc7 Bxh3 32. Rf2 Rc8 33. Qxb6 Be6 34. Re2

do you have a link to the errored post?

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 » Mon Jun 28, 2010 2:00 pm

pgn4web wrote:
Jeremy Bernstein wrote:

Code: Select all

[pgn]
[FEN "r2r2k1/5p1n/1pp1b2Q/p1p5/q3P2N/3P3P/1PP3P1/3RR1K1 w - - 0 23"]
[SetUp "1"]
23. Nf3! Qb4 24. Re3 Qxb2
25. e5 Qxc2 26. Rf1 Rxd3 27. Ne1 Rxe3 28. Nxc2 Rxe5 29. Qf4 f6 30. Qg3+ Rg5 31.
Qc7 Bxh3 32. Rf2 Rc8 33. Qxb6 Be6 34. Re2
[/pgn]
You need both the "FEN" and "SetUp" tags in order for this to work.
hmmm the problem must be somewhere else.

the PGN standard requires the SetUp tag to 1, but if FEN is present and SetUp is not there, then pgn4web is tolerant and it assumes as if SetUp = 1.

the following is without the SetUp tag in the input:

[FEN "r2r2k1/5p1n/1pp1b2Q/p1p5/q3P2N/3P3P/1PP3P1/3RR1K1 w - - 0 23"]
23. Nf3! Qb4 24. Re3 Qxb2
25. e5 Qxc2 26. Rf1 Rxd3 27. Ne1 Rxe3 28. Nxc2 Rxe5 29. Qf4 f6 30. Qg3+ Rg5 31.
Qc7 Bxh3 32. Rf2 Rc8 33. Qxb6 Be6 34. Re2

do you have a link to the errored post?
The errored post was missing the "FEN" tag, so I don't think that this is your problem -- there was simply no initial position. I've fixed the post in question, but you can reproduce the "issue" I was seeing if you just remove the "FEN" and "SetUp" tags from my posted version.

Jeremy

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

Re: How to post chess games

Post by pgn4web » Mon Jun 28, 2010 3:32 pm

Jeremy Bernstein wrote:The errored post was missing the "FEN" tag, so I don't think that this is your problem -- there was simply no initial position. I've fixed the post in question, but you can reproduce the "issue" I was seeing if you just remove the "FEN" and "SetUp" tags from my posted version.
No need.

I thought in your post you meant the FEN tag was there but the SetUp was missing.
I did not think anyone would expect a PGN from a non-standard initial position without telling the PGN viewer somehow what the actual initial position might be :D

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 » Mon Jun 28, 2010 3:36 pm

pgn4web wrote:
Jeremy Bernstein wrote:The errored post was missing the "FEN" tag, so I don't think that this is your problem -- there was simply no initial position. I've fixed the post in question, but you can reproduce the "issue" I was seeing if you just remove the "FEN" and "SetUp" tags from my posted version.
No need.

I thought in your post you meant the FEN tag was there but the SetUp was missing.
I did not think anyone would expect a PGN from a non-standard initial position without telling the PGN viewer somehow what the actual initial position might be :D
Exactly. I just wanted to document the PGN-compliant way of doing so.

Jeremy

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

Re: How to post chess games

Post by BB+ » Mon Dec 06, 2010 6:07 am

This text seems to cause an error:

Code: Select all

[pgn][FEN "r1bk1b1r/ppp1pp2/7p/4P1p1/4p3/6P1/PPP2PP1/RN2KB1R w KQ - - 2 13"]
1. Nc3 Bf5 2. O-O-O+ Kc8 3. Be2 Bg7 *[/pgn]
Does O-O-O+ work?
[FEN "r1bk1b1r/ppp1pp2/7p/4P1p1/4p3/6P1/PPP2PP1/RN2KB1R w KQ - - 2 13"]
1. Nc3 Bf5 2. O-O-O+ Kc8 3. Be2 Bg7 *

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 » Mon Dec 06, 2010 12:05 pm

BB+ wrote:This text seems to cause an error:
Apparently not. I'll fix that.

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 » Mon Jan 10, 2011 7:18 pm

BB+ wrote:This text seems to cause an error:

Code: Select all

[pgn][FEN "r1bk1b1r/ppp1pp2/7p/4P1p1/4p3/6P1/PPP2PP1/RN2KB1R w KQ - - 2 13"]
1. Nc3 Bf5 2. O-O-O+ Kc8 3. Be2 Bg7 *[/pgn]
Does O-O-O+ work?
You wanted

Code: Select all

[pgn][FEN "r1bk1b1r/ppp1pp2/7p/4P1p1/4p3/6P1/PPP2PP1/RN2KB1R w KQ - 2 13"]
13. Nc3 Bf5 14. O-O-O+ Kc8 15. Be2 Bg7 *[/pgn]
[FEN "r1bk1b1r/ppp1pp2/7p/4P1p1/4p3/6P1/PPP2PP1/RN2KB1R w KQ - 2 13"]
13. Nc3 Bf5 14. O-O-O+ Kc8 15. Be2 Bg7 *

But this doesn't work as of 19:18 CET on the 10th of January 2011, either. I just patched the latest version of pgn4web for use on OpenChess and will switch over to it shortly, at which time, this _will_ work.

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 » Mon Jan 10, 2011 11:20 pm

I've switched over. Please let me know if you observe any (new) unwanted PGN behavior.

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

Re: How to post chess games

Post by BB+ » Thu Jan 13, 2011 8:39 am

[FEN "r1bk1b1r/ppp1pp2/7p/4P1p1/4p3/6P1/PPP2PP1/RN2KB1R w KQ - 2 13"]
13. Nc3 Bf5 14. O-O-O+ Kc8 15. Be2 Bg7 *Still not working with O-O-O+? At least for me it doesn't, as clicking on "Be2" in move 15 gets stuck with Black's 13th still highlighted.

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 » Thu Jan 13, 2011 8:56 am

You may need to blow away your browser cache, or manually refresh the page, before it will work properly.

BTW, I am working on a sweet new, top secret feature, reverse-engineered from a number of fashionable, commercial chess programs, for this widget. Watch this space...

jb

Post Reply