cloakfall
    Preparing search index...

    Function redactGameState

    • The whole game, redacted for one viewer: every player, each with their own board redacted according to whether viewer owns it. This is what is safe to send to a remote client for viewer's own connection - it contains nothing about any board's hidden ship positions except the viewer's own, and - unlike a flat data snapshot - it is still a real, renderable, clickable DomItem tree: a remote client can inflate and render it with the exact same components local play already uses, and forward its clicks the same way.

      Parameters

      Returns Player[]