Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: 0x88 compared to rot BB

Author: Dieter Buerssner

Date: 13:52:47 01/13/03

Go up one level in this thread


On January 13, 2003 at 16:34:14, Bas Hamstra wrote:

>On January 13, 2003 at 15:48:08, Klaus Friedel wrote:
>
>>As far as I understand it, you loop through your piecelist and check for each
>>piece, if it attacks your target field.
>>Have youe ever tried to do it the other way round ?
>
>>Test if a hypothtical queen, rook ... on the target square would attack
>>opposite pieces of the matching type. Should be faster, especially in >opening/middlegame positions where otherwise many pieces have to be
>>considered as attacker.
>
>I have not tested it, but decades of 0x88 wisdom seems to indicate that the
>piecelist-loop is more efficient overall. You loop through 8 (mostly less)
>pieces, plus 2 pawnsquares, and most of them get eliminated very fast, because
>there is no meaningful relation between To and From squares, so skip...

Bas, I think you are wrong here. I tested it (not with 0x88), and the approach
suggested by Klaus is faster in many conditions for me. I try to use the faster
method based on some conditions, I check at the root position.

Regards,
Dieter



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.