@hanabi-live/game
    Preparing search index...

    Function eventClueToClue

    • Converts the clue of a game event into the clue that the game state keeps. The server omits a clue that the recipient may not see, and the clue's value when the recipient may see only its type. The game state keeps its giver.

      Parameters

      • clue:
            | Readonly<{ color?: 0 | 2 | 5 | 1 | 3 | 4; type: "color" }>
            | Readonly<{ rank?: 2 | 5 | 1 | 3 | 4; type: "rank" }>
            | undefined

      Returns HiddenClue | MsgClue