Author: Dann Corbit
Date: 11:16:01 10/25/02
Go up one level in this thread
On October 25, 2002 at 12:52:20, Dann Corbit wrote: >On October 25, 2002 at 07:37:51, Dave Gomboc wrote: >[snip] >>I agree with most of your preferences, but not the last: I'd prefer stopping >>with an error message to "ignoring and going on" every day of the week. IMO >>"ignoring and continuing" is the worst possible choice. > >Scenario: >1. You want to process 500 EPD rows with analysis over a weekend. >2. The 3rd row has a mistake in it (missing a closing quote on a comment). > >You want it to stop? > >For a tool designed for batch processing and where each individual record is a >completely independent unit of work, stopping is asinine. > >IMO-YMMV. So, I have said what it should not do... Here is what it should do: 1. Diagnose the exact problem. Write the problem record to a "input-problems" file, even if correctible, with a detailed comment saying: A. Exactly what was wrong B. Exactly what row in the input file it was C. If an attempt to correct the problem was made, and what the correction was Some things that I consider correctible: 1. FEN instead of EPD. If you see // instead of /8/ just make a blank row, but mention what you did in the corrections file 2. Order of castling or impossible castling (Change any QK or qk sequence to KQ or kq. For any illegal castling rights, just remove it, but say what you did) 3. Illegal bm -- just ignore the bm and don't try to solve the stated solution but solve whatever you think the best move might be. 4. Illegal am -- as above 5. Missing final quote or missing trailing semicolon -- just discard all of the record past the last valid field parsed and report what happened. 6. Forgotten quotes around the id field -- just take everything up to the next semicolon. If it still looks problematic, then discard it. Things that are clearly not correctible: 1. Impossible e.p. status (no pawn in the correct position to have moved there and be vulnerable) -- means that the whole record is in question 2. Both kings in check -- just discard it with a note 3. Too many pieces on the board -- just discard it with a note 4. Pawns on 1st or 8th rank -- just discard it with a note 5. More than 8 pawns of a given color -- just discard it with a note 6. More than 2 or less than 2 kings -- just discard it with a note Probably lots of other things as well.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.