Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: 0x88 compared to rot BB

Author: Bas Hamstra

Date: 13:34:14 01/13/03

Go up one level in this thread


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.



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.