Five ships, ten by ten, take turns firing. The AI does not guess at random: it counts every way the remaining ships could still fit and fires where the most fits overlap, then hunts along a hit until the ship sinks. You can switch on its heat map to see it think.