Add AttackMap::precomputer() and tests.