@hanabi-live/game
Preparing search index...
discard
Function discard
discard
(
playerIndex
:
PlayerIndex
,
order
:
number
,
suitIndex
:
-1
|
0
|
1
|
2
|
3
|
4
|
5
,
rank
:
-1
|
1
|
2
|
3
|
4
|
5
|
7
,
failed
:
boolean
,
)
:
ActionDiscard
Helper functions to build a
ActionDiscard
with a compact syntax. For use in tests.
Parameters
playerIndex
:
PlayerIndex
order
:
number
suitIndex
:
-1
|
0
|
1
|
2
|
3
|
4
|
5
rank
:
-1
|
1
|
2
|
3
|
4
|
5
|
7
failed
:
boolean
Returns
ActionDiscard
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@hanabi-live/game
Loading...
Helper functions to build a
ActionDiscard
with a compact syntax. For use in tests.