Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: A question for you 0x88 folks

Author: Pat King

Date: 17:14:57 03/24/04

Go up one level in this thread


On March 24, 2004 at 15:23:26, Dann Corbit wrote:

>A lot of people seem to use the 16x8 board with 0x88.
>
>Very vew people seem to use the other half for anything useful.
>

I wouldn't say that!

I've been using an interleaving scheme to save space.

template<typename T>
class Interleave_OX88
{
  T Data[128];
 public:
  T *operator[](size_t i){return i?Data+8:Data;};
};

// Following are typical uses
Interleave_0X88<hash_key> KingKeys;
Hash ^= KingKeys[WHITE][e1] ^ KingKeys[WHITE][g1];

Interleave_0X88<int> KnightPieceSquare;
Eval += KnightPieceSquare[BLACK][f6];





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.