About Polyglot Books & Some Errors !

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

About Polyglot Books & Some Errors !

Postby Stoneface » 15 Jun 2011, 09:00

I know that in a pgn-file i've to remove the 'ep'(from en-passant capturing) cause otherwise the bookmaking give an error!! But now I was making a book from a pgn of 100 000+ games, but it gave an error wich i go let see here, including the commands i gave:

C:\MyBook>polyglot make-book -min-game 1 -min-score 0.0 -only-white -pgn CMwit.pgn -bin CMwit.bin -max-ply 469
PolyGlot 1.4.66b by Fabien Letouzey.
inserting games ...
tellusererror POLYGLOT: book_insert(): illegal move "Re1" at line 1308, column 38,game 71

If i checked it out with my different databases(including SCID), and with WinBoard&Arena&ChessMaster11, the move is completely 'legal" but it stay give this error, even after when i retyped&saved the move again by myself. I tried many other things but can't find something wrong or 'illegal' on this move "17. Re1", also nothing is wrong with the text-formatting either :?
I'll go give here also the pgn tekst too:

[Event "?"]
[Site "New Orleans"]
[Date "1855.??.??"]
[Round "?"]
[White "Morphy"]
[Black "NN"]
[Result "1-0"]
[SetUp "1"]
[FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/1NBQKBNR w Kkq - 0 1"]

1. e4 e5 2. Nf3 Nc6 3. Bc4 Bc5 4. b4 Bxb4 5. c3 Bc5 6. d4 exd4 7. cxd4 Bb6
8. O-O d6 9. Nc3 Na5 10. Bd3 Bg4 11. Be3 Qf6 12. Nd5 Qd8 13. h3 Bxf3 14.
Qxf3 Nf6 15. Bg5 Bxd4 16. e5 Bxe5 17. Re1 O-O 18. Rxe5 dxe5 19. Nxf6+ gxf6
20. Bxf6 1-0

It's not the first time that this same Rook move appears in the pgn-file but here it gave this error, so. If someone of you guys can find out how this come, that'd be very great my friends. Sorry for this maybe simple issue, but i can't find the problem of this 'ilegal-error'!
It do also the same with this other pgn that i've exported from Chessmasster11, like the previous one. It seem it have problems with some rook moves those're exported from Chessmaster, even when they're really legal.

C:\MyBook>polyglot make-book -min-game 1 -min-score 0.0 -only-white -pgn CMzwart.pgn -bin CMzwart.bin -max-ply 469
PolyGlot 1.4.66b by Fabien Letouzey.
inserting games ...
tellusererror POLYGLOT: book_insert(): illegal move "Rf1" at line 1752, column 13,game 94



Thx in front to all .
Stoneface
 
Posts: 5
Joined: 13 Jun 2011, 03:56

Re: About Polyglot Books & Some Errors !

Postby mocha1961 » 15 Jun 2011, 14:45

look closely at move 17 youre talking about which is Re1. it will create an error due to the fact that either rook in a or f can do Re1. if only move 17 is Rfe1 or Rae1. then there will be no error. i guess. :D
mocha1961
 
Posts: 12
Joined: 08 Jan 2010, 00:31

Re: About Polyglot Books & Some Errors !

Postby H.G.Muller » 15 Jun 2011, 15:38

There is no Rook on a1. It was already missing in the initial position. Makes you wonder if Polyglot got that...
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: About Polyglot Books & Some Errors !

Postby Stoneface » 15 Jun 2011, 16:05

My god, that i didn't notice that, at the begin position already no rook at a1, how's that possible. That'll be the same with that other match also. First time i have this in a pgn-file, strange stuff. :shock:
Stoneface
 
Posts: 5
Joined: 13 Jun 2011, 03:56

Re: About Polyglot Books & Some Errors !

Postby H.G.Muller » 15 Jun 2011, 17:13

Well, it means for sure that it is a bit pointless to include this game in the pGN set to make a book from. Perhaps Polyglot assumes that all games in the set start from the standard opening position, and ignores the FEN tag. If this is so, it should count as an error. You could test it by altering the FEN tag to "4k3/8/8/8/8/8/8/4K3 w - - 0 1", and see if it still accepts the move upto 17. Re1, or if it already starts complaining on 1. e4.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: About Polyglot Books & Some Errors !

Postby matematiko » 15 Jun 2011, 20:00

If my PGN database has 100,000 to 200,000 or more games, what significant difference will one game less do? So, instead of trying to find out why polyglot is rejecting a particular move I just delete the entire game and move on. I am sure that after you fix (delete game) this problem, you are going to get a few more, and this standard procedure when dealing with downloaded databases.

Regards,

Edit: I had to edit this post because it seems that my post was caugth between other posts edits or deletes and my post ended up quoting last Mr. Muller post and that was not my intention.
One that does not live to serve, does not deserve to live.
matematiko
 
Posts: 219
Joined: 07 Dec 2008, 17:11
Location: Texas


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 10 guests