Computer Chess Club Archives


Search

Terms

Messages

Subject: an interesting bug in my move generator

Author: Uri Blass

Date: 14:07:31 12/31/01


My program had problems with WAC 250 so I decided to ask it to calculate the
perft function and found that it cannot calculate perft 4 correctly

The bug is that my program believed that double check from 2 rook directions is
impossible

Here is the position of WAC 250
[D]1b5k/7P/p1p2np1/2P2p2/PP3P2/4RQ1R/q2r3P/6K1 w - - 0 1

When I asked my program to calculate perft it failed in perft 4.

My program did not count correctly the number of moves after
1.a5 Ng8 hxg8Q+

it turns out that my program simply did not see that the rook does a check so it
believed that Qxg8 is a legal move.

My program also believes that double check from 2 diagnols is impossible and I
hope that at least it is not wrong with it.

Uri



This page took 0.01 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.