cloakfall
    Preparing search index...

    Function hitChances

    • The chance that each unattacked cell holds a part of some remaining ship. Each ship's placements are weighted as in scoreTargets, then turned into a share of that ship's total, so a ship counts once however many placements it has. Not used by the game's robot yet: it is kept for game styles where the chance of a hit matters more than elimination.

      Parameters

      • state: ShotState
      • damagedWeight: number = DAMAGED_WEIGHT

      Returns number[][]