Computer Chess Club Archives


Search

Terms

Messages

Subject: Bitboard question

Author: Jarkko Pesonen

Date: 06:21:17 07/07/03


In Crafty bitboard function FirstOne gives 12 and LastOne gives 53.
Is there fast implementation for LeftOne and RightOne, which
would give in below case 33 and 38.
C implementation would ne appriciated.

---+---+---+---+---+---+---+---+
   |   |   |   |   |   |   |   |
---+---+---+---+---+---+---+---+
   |   |   |   |   | *P|   |   |
---+---+---+---+---+---+---+---+
   |   |   |   |   |   |   |   |
---+---+---+---+---+---+---+---+
   | *P| *P|   |   |   | *P|   |
---+---+---+---+---+---+---+---+   0x0080000062000400
   |   |   |   |   |   |   |   |
---+---+---+---+---+---+---+---+
   |   |   |   |   |   |   |   |
---+---+---+---+---+---+---+---+
   |   |   |   |*P |   |   |   |
---+---+---+---+---+---+---+---+
   |   |   |   |   |   |   |   |
---+---+---+---+---+---+---+---+

thanks in advance

Jarkko



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.