frontend
Preparing search index...
hooks/useEuchreGame
useEuchreGame
Function useEuchreGame
useEuchreGame
()
:
{
apiExec
:
(
...
args
:
[
command
:
|
"reset"
|
"play"
|
"discard"
|
"pass"
|
"next"
|
"nextround"
|
"hint"
|
"orderup"
|
"calltrump"
,
cardIndex
?:
number
,
suit
?:
number
,
goAlone
?:
boolean
,
config
?:
EuchreConfigInput
,
]
,
)
=>
Promise
<
void
>
;
clearSelection
:
()
=>
void
;
error
:
string
|
null
;
euchreConfig
:
EuchreConfig
;
handleCallTrump
:
(
suit
:
number
,
goAlone
:
boolean
)
=>
void
;
handleConfigChange
:
(
key
:
NumberKeys
<
EuchreConfig
>
,
value
:
string
)
=>
void
;
handleDiscard
:
()
=>
void
;
handleHint
:
()
=>
Promise
<
void
>
;
handleNextRound
:
()
=>
void
;
handleNextTrick
:
()
=>
void
;
handleOrderUp
:
(
goAlone
:
boolean
)
=>
void
;
handlePass
:
()
=>
void
;
handlePlay
:
()
=>
void
;
hint
:
EuchreHint
|
null
;
hintError
:
string
|
null
;
hintLoading
:
boolean
;
loading
:
boolean
;
retry
:
()
=>
Promise
<
void
>
;
selectedCardIndices
:
number
[]
;
state
:
EuchreResponse
|
null
;
toggleCard
:
(
idx
:
number
)
=>
void
;
}
Hook that manages Euchre game state, bidding, and player actions.
Returns
{
apiExec
:
(
...
args
:
[
command
:
|
"reset"
|
"play"
|
"discard"
|
"pass"
|
"next"
|
"nextround"
|
"hint"
|
"orderup"
|
"calltrump"
,
cardIndex
?:
number
,
suit
?:
number
,
goAlone
?:
boolean
,
config
?:
EuchreConfigInput
,
]
,
)
=>
Promise
<
void
>
;
clearSelection
:
()
=>
void
;
error
:
string
|
null
;
euchreConfig
:
EuchreConfig
;
handleCallTrump
:
(
suit
:
number
,
goAlone
:
boolean
)
=>
void
;
handleConfigChange
:
(
key
:
NumberKeys
<
EuchreConfig
>
,
value
:
string
)
=>
void
;
handleDiscard
:
()
=>
void
;
handleHint
:
()
=>
Promise
<
void
>
;
handleNextRound
:
()
=>
void
;
handleNextTrick
:
()
=>
void
;
handleOrderUp
:
(
goAlone
:
boolean
)
=>
void
;
handlePass
:
()
=>
void
;
handlePlay
:
()
=>
void
;
hint
:
EuchreHint
|
null
;
hintError
:
string
|
null
;
hintLoading
:
boolean
;
loading
:
boolean
;
retry
:
()
=>
Promise
<
void
>
;
selectedCardIndices
:
number
[]
;
state
:
EuchreResponse
|
null
;
toggleCard
:
(
idx
:
number
)
=>
void
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
frontend
Loading...
Hook that manages Euchre game state, bidding, and player actions.