frontend
Preparing search index...
hooks/useGoFishGame
useGoFishGame
Function useGoFishGame
useGoFishGame
()
:
{
error
:
string
|
null
;
exec
:
(
...
args
:
[
command
:
"reset"
|
"log"
|
"ask"
,
targetIdx
?:
number
,
rank
?:
number
,
config
?:
GoFishConfigInput
,
]
,
)
=>
Promise
<
void
>
;
goFishConfig
:
GoFishConfig
;
handleAsk
:
()
=>
void
;
handleConfigChange
:
(
key
:
"cpuDifficulty"
,
value
:
string
)
=>
void
;
handleSelectRank
:
(
rank
:
number
)
=>
void
;
handleSelectTarget
:
(
idx
:
number
)
=>
void
;
loading
:
boolean
;
retry
:
()
=>
Promise
<
void
>
;
selectedRank
:
number
|
null
;
selectedTarget
:
number
|
null
;
state
:
GoFishResponse
|
null
;
}
Hook that manages Go Fish game state and player actions.
Returns
{
error
:
string
|
null
;
exec
:
(
...
args
:
[
command
:
"reset"
|
"log"
|
"ask"
,
targetIdx
?:
number
,
rank
?:
number
,
config
?:
GoFishConfigInput
,
]
,
)
=>
Promise
<
void
>
;
goFishConfig
:
GoFishConfig
;
handleAsk
:
()
=>
void
;
handleConfigChange
:
(
key
:
"cpuDifficulty"
,
value
:
string
)
=>
void
;
handleSelectRank
:
(
rank
:
number
)
=>
void
;
handleSelectTarget
:
(
idx
:
number
)
=>
void
;
loading
:
boolean
;
retry
:
()
=>
Promise
<
void
>
;
selectedRank
:
number
|
null
;
selectedTarget
:
number
|
null
;
state
:
GoFishResponse
|
null
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
frontend
Loading...
Hook that manages Go Fish game state and player actions.