bnst wrote:I made a simple perl script that check for illegal number of pieces and illegal FEN and illegeal number of pawns and it found 2972 errors.
The most were pawns on the first or last row and the rest 201 errors were more than eight pawns of one colour.
Regards Andreas
Here is the summary.
Code: Select all
Position NoBM IPawnLoc INumPawn INumPiece IPaAndPie IFen
1112569 46 2870 201 16 31 27
NoBM = No bestmove
IPawnLoc = Illegal pawn location, at 1st and 8th rank
INumPawn = Illegal number of pawns, could be wp > 8 or bp > 8
INumPiece = Illegal number of pieces (not pawns), could be wr > 10 and others
IPaAndPie = Illegal counts based on pawns and pieces combination, could be wr = 3 but wp = 8. The positions here are not in INumPawn and not in INumPiece.
IFen = Illegal Fen, this is based on the Python-Chess Library (PCL) that I use. I save the fen whenever that method set_fen(fen) raised an error.
Looking at the positions, these are fen with qk castle field for example. Also 2 successive digit in the row like /1K1P4/
P4B11/8 w
It could happen that positions in INumPawn can be found in IPawnLoc.
Download:
http://www.mediafire.com/download/5hp6p ... n_test.rar
Files in the download:
Code: Select all
02/27/2015 09:52 PM 3,078 illegalFen.epd
02/27/2015 09:52 PM 26,228 illegalNumPawns.epd
02/27/2015 09:52 PM 2,466 illegalNumPieces.epd
02/27/2015 09:52 PM 3,692 illegalNumPiecesAndPawns.epd
02/27/2015 09:52 PM 354,274 illegalPawnLocation.epd
02/27/2015 09:52 PM 4,735 noBestMove.epd
02/27/2015 09:52 PM 142 summary_log.txt