cloakfall
    Preparing search index...

    Function redactPlayer

    • One player, redacted for a given viewer: a clone of the real player, with its board and fleet redacted per redactBoard/redactShip (and the sensor scan's shading removed unless the viewer is the attacker who has it on), its own placement panel disabled, and its own hint checkbox removed entirely, all unless this is that player's own viewer. Everything else (name, colour, robot/human, overall status, whose turn it is) passes through unchanged. children is kept in step with whichever of its own entries changed, by index, rather than assumed to always be exactly [turn-badge, board, stats] - a remote game's own fourth child (its placement panel) would otherwise silently be dropped.

      Parameters

      Returns Player