frontend
Preparing search index...
hooks/useOhHellGame
useOhHellGame
Function useOhHellGame
useOhHellGame
()
:
{
clearSelection
:
()
=>
void
;
error
:
string
|
null
;
exec
:
(
...
args
:
[
command
:
"reset"
|
"play"
|
"next"
|
"nextround"
|
"hint"
|
"bid"
,
bid
?:
number
,
cardIndex
?:
number
,
config
?:
OhHellConfigInput
,
]
,
)
=>
Promise
<
void
>
;
handleBid
:
(
bid
:
number
)
=>
void
;
handleConfigChange
:
(
key
:
NumberKeys
<
OhHellConfig
>
,
value
:
string
)
=>
void
;
handleHint
:
()
=>
Promise
<
void
>
;
handleNextRound
:
()
=>
void
;
handleNextTrick
:
()
=>
void
;
handlePlay
:
()
=>
void
;
hint
:
OhHellHint
|
null
;
hintError
:
string
|
null
;
hintLoading
:
boolean
;
loading
:
boolean
;
ohHellConfig
:
OhHellConfig
;
retry
:
()
=>
Promise
<
void
>
;
selectedCardIndices
:
number
[]
;
state
:
OhHellResponse
|
null
;
toggleCard
:
(
idx
:
number
)
=>
void
;
}
Hook that manages Oh Hell game state, bidding, and player actions.
Returns
{
clearSelection
:
()
=>
void
;
error
:
string
|
null
;
exec
:
(
...
args
:
[
command
:
"reset"
|
"play"
|
"next"
|
"nextround"
|
"hint"
|
"bid"
,
bid
?:
number
,
cardIndex
?:
number
,
config
?:
OhHellConfigInput
,
]
,
)
=>
Promise
<
void
>
;
handleBid
:
(
bid
:
number
)
=>
void
;
handleConfigChange
:
(
key
:
NumberKeys
<
OhHellConfig
>
,
value
:
string
)
=>
void
;
handleHint
:
()
=>
Promise
<
void
>
;
handleNextRound
:
()
=>
void
;
handleNextTrick
:
()
=>
void
;
handlePlay
:
()
=>
void
;
hint
:
OhHellHint
|
null
;
hintError
:
string
|
null
;
hintLoading
:
boolean
;
loading
:
boolean
;
ohHellConfig
:
OhHellConfig
;
retry
:
()
=>
Promise
<
void
>
;
selectedCardIndices
:
number
[]
;
state
:
OhHellResponse
|
null
;
toggleCard
:
(
idx
:
number
)
=>
void
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
frontend
Loading...
Hook that manages Oh Hell game state, bidding, and player actions.