Preparing search index...
The search index is not available
@hanabi-live/game
@hanabi-live/game
gameReducer
Function gameReducer
Computes the next game state from a given action.
gameReducer
(
state
?:
GameState
,
...
args
:
[
action
:
GameAction
,
playing
:
boolean
,
shadowing
:
boolean
,
finished
:
boolean
,
hypothetical
:
boolean
,
metadata
:
GameMetadata
,
ourNotes
?:
readonly
CardNote
[]
,
]
,
)
:
GameState
Parameters
Optional
state
:
GameState
...
args
:
[
action
:
GameAction
,
playing
:
boolean
,
shadowing
:
boolean
,
finished
:
boolean
,
hypothetical
:
boolean
,
metadata
:
GameMetadata
,
ourNotes
?:
readonly
CardNote
[]
,
]
Returns
GameState
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@hanabi-live/game
Loading...
Computes the next game state from a given action.