Build what the robot is allowed to know about a victim: which cells were attacked, which of those were hits (the
hit parts of each ship, not the position of any part still unhit), and how many parts each unsunk ship has.
Hit or miss is read from the ship parts' isHit flags, never from a tile's hasShip.
Build what the robot is allowed to know about a victim: which cells were attacked, which of those were hits (the hit parts of each ship, not the position of any part still unhit), and how many parts each unsunk ship has. Hit or miss is read from the ship parts' isHit flags, never from a tile's hasShip.