in pachi_py/pachi/pattern3.c [260:274]
static __attribute__((constructor)) void
p3hashes_init(void)
{
/* tuned for 11482 collisions */
/* XXX: tune better */
hash_t h = 0x35373c;
for (int i = 0; i < 8; i++) {
for (int a = 0; a < 2; a++) {
p3hashes[i][a][S_NONE] = (h = h * 16803-7);
p3hashes[i][a][S_BLACK] = (h = h * 16805-2);
p3hashes[i][a][S_WHITE] = (h = h * 16807-11);
p3hashes[i][a][S_OFFBOARD] = (h = h * 16809+7);
}
}
}