Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Move generation test suite

Author: Joel

Date: 20:59:14 03/31/04

Go up one level in this thread


Hey Russell,

I don't see how any empirical test can prove an arbitrary move generator (a
function which generates moves, no implementation details are implied) without
having to try every possible board position, and compare against a omniscient
database.

eg, i write a movegen-by-cases kind of move generator, it takes several billion
trilion gazillion lines, and there is one position which doesnt work! :)

But that arguement is kind of ridiculus! What I mean to say is, unless you are
prepared to mathematically prove the correctness of your move generator (and who
could be bothered?) , I don't think there is many better ways than reading your
code _well_, hand waving that it is correct, then testing it against _lots_ of
positions against a known correct result.

Just my thoughts, have a good day.

Joel



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.