Code: Select all
s32 bkhtbl[225] = {
12, , , , , , , 0, , , , , , , 12,
, 16, , , , , , 4, , , , , , 16, ,
, , 20, , , , , 10, , , , , 20, , ,
, , , 24, , , , 16, , , , 24, , , ,
, , , , 28, , , 22, , , 28, , , , ,
, , , , , 32, , 28, , 32, , , , , ,
, , , , , , 36, 34, 36, , , , , , ,
0, 4, 10, 16, 22, 28, 34, 40, 34, 28, 22, 16, 10, 4, 0,
, , , , , , 36, 34, 36, , , , , , ,
, , , , , 32, , 28, , 32, , , , , ,
, , , , 28, , , 22, , , 28, , , , ,
, , , 24, , , , 16, , , , 24, , , ,
, , 20, , , , , 10, , , , , 20, , ,
, 16, , , , , , 4, , , , , , 16, ,
12, , , , , , , 0, , , , , , , 12,
};The way it works is no matter where the enemy king is it is mapped to the "40" in the center making the 8x8 chess board float around the "40". Then before the search the relevant king hunter values are loaded into a regular 8x8 pst. I wonder how well an engine would do with these kinds of PSTs?

