cloakfall
    Preparing search index...

    Function randomAttack

    • Attack a random still-unhit cell on a random still-afloat opponent's board - no targeting logic at all, unlike computerAttack.ts's own density-based choice (this is deliberately the dumbest possible fallback, not a robot's turn). Used when a human player's own turn-timeout deadline expires in a remote game (see server/gameplay.ts) instead of leaving everyone else waiting on them indefinitely.

      Parameters

      Returns Player[]