Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Test suite for move generation

Author: Andrew Wagner

Date: 13:45:21 03/03/04

Go up one level in this thread


Hmm, you guys are fast, but I'm not sure either of you actually completely read
my post :). The two keys are

1.) "mass-produce" (i.e. not copy and paste a fen and type 'perft 1', 'perft 2',
etc.)

and 2.) "my own positions" - the ones on peter's site are great, but if your
program is off in one of those positions it's very hard to track down a bug from
it. I want to put together a list of simple positions that will test perft for
very specific things. in fact, here, let me paste my first set of test
positions, for castling:

4k3/8/8/8/8/8/8/4K2R w K - 0 1
4k3/8/8/8/8/8/8/R3K3 w Q - 0 1
4k2r/8/8/8/8/8/8/4K3 w k - 0 1
r3k4/8/8/8/8/8/8/4K3 w q - 0 1

4k3/8/8/8/8/8/8/R3K2R w KQ - 0 1
r3k2r/8/8/8/8/8/8/4K3 w kq - 0 1

8/8/8/8/8/8/6k1/4K2R w K - 0 1
8/8/8/8/8/8/1k6/R3K3 w Q - 0 1
4k2r/6K1/8/8/8/8/8/8 w k - 0 1
r3k4/1K6/8/8/8/8/8/8 w q - 0 1

r3k2r/8/8/8/8/8/8/R3K2R w KQkq - 0 1

r3k2r/8/8/8/8/8/8/1R2K2R w Kkq - 0 1
r3k2r/8/8/8/8/8/8/2R1K2R w Kkq - 0 1
r3k2r/8/8/8/8/8/8/R3K1R1 w Qkq - 0 1
1r2k2r/8/8/8/8/8/8/8/8/R3K2R w KQk - 0 1
2r1k2r/8/8/8/8/8/8/8/8/R3K2R w KQk - 0 1
r3k1r1/8/8/8/8/8/8/8/8/R3K2R w KQq - 0 1

4k3/8/8/8/8/8/8/4K2R b K - 0 1
4k3/8/8/8/8/8/8/R3K3 b Q - 0 1
4k2r/8/8/8/8/8/8/4K3 b k - 0 1
r3k4/8/8/8/8/8/8/4K3 b q - 0 1

4k3/8/8/8/8/8/8/R3K2R b KQ - 0 1
r3k2r/8/8/8/8/8/8/4K3 b kq - 0 1

8/8/8/8/8/8/6k1/4K2R b K - 0 1
8/8/8/8/8/8/1k6/R3K3 b Q - 0 1
4k2r/6K1/8/8/8/8/8/8 b k - 0 1
r3k4/1K6/8/8/8/8/8/8 b q - 0 1

r3k2r/8/8/8/8/8/8/R3K2R b KQkq - 0 1

r3k2r/8/8/8/8/8/8/1R2K2R b Kkq - 0 1
r3k2r/8/8/8/8/8/8/2R1K2R b Kkq - 0 1
r3k2r/8/8/8/8/8/8/R3K1R1 b Qkq - 0 1
1r2k2r/8/8/8/8/8/8/8/8/R3K2R b KQk - 0 1
2r1k2r/8/8/8/8/8/8/8/8/R3K2R b KQk - 0 1
r3k1r1/8/8/8/8/8/8/8/8/R3K2R b KQq - 0 1

Some of these are quite repetitive, but I'm learning that when it comes to chess
programming (and especially bug-hunting in move generation), the more the
better!



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.