Score every cell by how many ways the remaining ships could still cover it. Each ship contributes every placement
consistent with what is known: it avoids misses, covers all of its own known hits, and touches no other ship's hit.
Cells already attacked score zero. Unattacked cells next to a hit on an unsunk ship then get the adjacent weight on top.
Score every cell by how many ways the remaining ships could still cover it. Each ship contributes every placement consistent with what is known: it avoids misses, covers all of its own known hits, and touches no other ship's hit. Cells already attacked score zero. Unattacked cells next to a hit on an unsunk ship then get the adjacent weight on top.