Solution format

Aug 20, 2016 16:36

It finally happened. When saving an entry the database now checks the solution to be in py2web format. Please report bugs (especially for fairies!). This is a major step toward full-text solution search and automatic solution analyzing.

updates

Leave a comment

Comments 13

bug in twins ext_789893 September 5 2016, 18:42:13 UTC
Here is a fairy twin example:

---
authors:
- Tritten, Pierre
- Luce, Sébastien
source: The Problemist Supplement
date: 2015-09
distinction:
algebraic:
white: [Kg7, Bf3, Sd2]
black: [Pa4, Pe4, Ka3, Bb3, Pc3, Pa2]
neutral: []
stipulation: "h#2"
options:
- Take&MakeChess
twins:
b : Add black Sb3
keywords:
solution: |
"a)
1.c3*d2-b1=R Bf3*e4-e3 2.Rb1-b2 Be3-c5 #
b) bSb3
1.e4*f3-d1=S Sd2-e4 2.Sd1-b2 Se4*c3-c2 #"

The solution is provided by the "Run Popeye" function on the website. However, it generates the error "Solution check failed: Syntax error at '2', line 1, char 61". The error does not occur if the twinning condition is removed and the solution regenerated.

Tobias

Reply

Re: bug in twins yacpdb September 6 2016, 09:33:20 UTC
Fixed

Reply


bug with fairy piece ext_789893 September 6 2016, 08:25:30 UTC
---
authors:
- Tritten, Pierre
source: Shachmatnaja Kompozicia
date: 2014
distinction:
algebraic:
white: [Qa8, Kf8, Sg8, Se4, Bg4]
black: [Rof6, Qe5, Rd3, Ph2, Sg1, Kh1]
neutral: []
stipulation: "hs#2"
intended-solutions: 2
keywords:
solution: |
"1.Bg4-h3 Rd3-f3 2.Se4-f2 + ROf6*f2 #
1.Qa8-a1 ROf6-f2 2.Bg4-f3 + Rd3*f3 #"

The above problem has again a solution provided by popeye. I causes the error "Solution check failed: Syntax error at 'O', line 1, char 30"

Reply

Re: bug with fairy piece yacpdb September 6 2016, 09:33:36 UTC
Fixed

Reply


A more cryptic fairy bug ext_789893 September 6 2016, 08:32:34 UTC
---
authors:
- Huber, Eric
source: Julia's Fairies
date: 2014
distinction:
algebraic:
white: [Pf6, Ld5, Kh4]
black: [Kg6, Pe5]
neutral: []
stipulation: "hs#2"
options:
- Isardam
- SuperCirce
twins:
b : Move e5 f5
keywords:
solution: |
"a)
1.Ld5*e5-f5[+bPa1=L] + La1*f6-g7[+wPg8=L] 2.Kh4-g5 + Kg6*f5[+wLg6] #
b) bPe5-->f5
1.Ld5*f5-g5[+bPf1=L] + Lf1*f6-f7[+wPe8=L] 2.Kh4-h5 + Kg6*g5[+wLg6] #"

Causes the error "Solution check failed: Board instance has no attribute 'getStm'". Solution is again given by popeye.

Reply

Re: A more cryptic fairy bug yacpdb September 6 2016, 09:33:53 UTC
And fixed. Thanks!

Reply


pretty much stopped contributing ext_789893 November 1 2016, 12:34:27 UTC
Unfortunately, this feature, while in principle very useful, has made contributing to yacpdb extremely frustrating. To the point that I've actually stopped editing.

Because problem cannot be submitted without a py2web-formatted solution, it has become a very tedious work. I haven't found the actual specifications of this format anywhere, so I have no clue what something like "Solution check failed: no pipe" could mean. This means that it's a lot of trial and error to attempt to construct an acceptable solution (unless a problem is simple enough to quickly get a solution from popeyey).

Even edits to already existing problems, like adding a date or source, are not accepted if the solution is not correctly formatted. So, for example, if one would like to add a source to this problem: http://yacpdb.org/#289117, that would require manually constructing a fifty move solution in an unknown format.

Reply

Re: pretty much stopped contributing yacpdb November 2 2016, 10:48:46 UTC
The specification is described in brief on the Py2Web page (popeye output format with optional {comments}), which is sufficient for 99% of cases. The complete specification in Backus-Naur form is available on github (linked from the Py2Web page)

> Solution check failed: *
Means that the server is encountering internal problems. This is normally should never happen, I fixed it by rebooting.

> Even edits to already existing problems, like adding a date or source, are not accepted if the solution is not correctly formatted.

Yes. Sorry, but this is the whole point of it.

Reply


Solution check failed: Illegal character '<', solution from popeye ext_789893 December 26 2016, 21:16:14 UTC
Here is a problem with a solution provided by popeye, via the "run popeye" button, resulting in an error message because of an illegal character.

---
authors:
- Caillaud, Michel
source: Messihny
date: 2014
distinction: 4th Comm.
algebraic:
white: [Bld5, Ka2, Qf2]
black: [Pf6, Bld1, Kh1]
neutral: []
options:
- MessignyChess
stipulation: "#4"
keywords:
solution: |
"1.BLd5<->BLd1 ! zugzwang.
1...f6-f5
2.BLd1<->BLd5 zugzwang.
2...f5-f4
3.BLd5<->BLd1 zugzwang.
3...f4-f3
4.BLd1<->BLd5 #"

This seems to mean there is either an issue with the output of popeye, or with the solution verification.

Reply

Re: Solution check failed: Illegal character '<', solution from popeye yacpdb December 27 2016, 06:41:50 UTC
Hi,

MessignyChess notation is not yet supported. As a workaround Messigny moves can be written as PWC moves, eg:
1.BLd5*d1 [+bBLd5] etc

Reply


Leave a comment

Up