/** * A search has been completed. Store the information in the hash. * * Currently overwrites existing hash entry regardless of depth. */ void HashTable::storeHash(u64 mover, u64 enemy, int alpha, int beta, int score) { Hash* entry = hashLoc(mover, enemy); if (entry->mover != mover ||entry->enemy != enemy) { entry->init(mover, enemy); } entry->store(alpha, beta, score); }