Page 6 of 20

Re: How to post chess games

Posted: Mon Jun 28, 2010 1:57 pm
by pgn4web
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?

Re: How to post chess games

Posted: Mon Jun 28, 2010 2:00 pm
by Jeremy Bernstein
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

Re: How to post chess games

Posted: Mon Jun 28, 2010 3:32 pm
by pgn4web
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

Re: How to post chess games

Posted: Mon Jun 28, 2010 3:36 pm
by Jeremy Bernstein
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

Re: How to post chess games

Posted: Mon Dec 06, 2010 6:07 am
by BB+
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 *

Re: How to post chess games

Posted: Mon Dec 06, 2010 12:05 pm
by Jeremy Bernstein
BB+ wrote:This text seems to cause an error:
Apparently not. I'll fix that.

jb

Re: How to post chess games

Posted: Mon Jan 10, 2011 7:18 pm
by Jeremy Bernstein
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

Re: How to post chess games

Posted: Mon Jan 10, 2011 11:20 pm
by Jeremy Bernstein
I've switched over. Please let me know if you observe any (new) unwanted PGN behavior.

Re: How to post chess games

Posted: Thu Jan 13, 2011 8:39 am
by BB+
[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.

Re: How to post chess games

Posted: Thu Jan 13, 2011 8:56 am
by Jeremy Bernstein
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