cloakfall
    Preparing search index...

    Variable coloursConst

    colours: { hit: string; miss: string; ship: string } = ...

    Cloakfall's look in one place: the colours a board cell can show. Every fleet is cloaked in a dark sector of space; a shot that finds nothing is a dim scatter of empty space, a hit is a bright flare, and a player's own visible ships are silver.

    Colour is never the only signal: a shot cell also gets data-shot (hit / miss), which the CSS marks with a shape (a cross for a hit, a dot for a miss), since a hit and a shown ship differ mostly by hue.

    These are the only states a player can see on a board, so the cell names a screen reader hears (labelTile) and the remote redaction of hidden ships (redactBoard) both read them from here.

    Type Declaration

    • hit: string

      A shot that hit a ship: a bright orange flare.

    • miss: string

      A shot into empty space: slate (3.9:1 against an unshot cell).

    • ship: string

      A player's own ship, when shown (placement, "Show my ships").