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

    Variable gameReducerConst

    gameReducer: (
        state?: GameState,
        ...args: [
            action: GameAction,
            playing: boolean,
            shadowing: boolean,
            finished: boolean,
            hypothetical: boolean,
            metadata: GameMetadata,
            ourNotes?: readonly CardNote[],
        ],
    ) => GameState = ...

    Computes the next game state from a given action.

    Type Declaration

      • (
            state?: GameState,
            ...args: [
                action: GameAction,
                playing: boolean,
                shadowing: boolean,
                finished: boolean,
                hypothetical: boolean,
                metadata: GameMetadata,
                ourNotes?: readonly CardNote[],
            ],
        ): GameState
      • Parameters

        • Optionalstate: GameState
        • ...args: [
              action: GameAction,
              playing: boolean,
              shadowing: boolean,
              finished: boolean,
              hypothetical: boolean,
              metadata: GameMetadata,
              ourNotes?: readonly CardNote[],
          ]

        Returns GameState