frontend
Preparing search index...
hooks/useTriPeaksGame
useTriPeaksGame
Function useTriPeaksGame
useTriPeaksGame
()
:
{
error
:
string
|
null
;
exec
:
(
...
args
:
[
command
:
|
"reset"
|
"log"
|
"draw"
|
"hint"
|
"giveup"
|
"undo"
|
"remove"
,
row
?:
number
,
col
?:
number
,
]
,
)
=>
Promise
<
void
>
;
handleDraw
:
()
=>
void
;
handleGiveUp
:
()
=>
void
;
handleHint
:
()
=>
Promise
<
void
>
;
handleReset
:
()
=>
void
;
handleSelectCard
:
(
row
:
number
,
col
:
number
)
=>
void
;
handleUndo
:
()
=>
void
;
hint
:
TriPeaksHint
|
null
;
hintError
:
string
|
null
;
loading
:
boolean
;
retry
:
()
=>
Promise
<
void
>
;
state
:
TriPeaksResponse
|
null
;
}
Hook that manages TriPeaks game state, hints, and card removal actions.
Returns
{
error
:
string
|
null
;
exec
:
(
...
args
:
[
command
:
|
"reset"
|
"log"
|
"draw"
|
"hint"
|
"giveup"
|
"undo"
|
"remove"
,
row
?:
number
,
col
?:
number
,
]
,
)
=>
Promise
<
void
>
;
handleDraw
:
()
=>
void
;
handleGiveUp
:
()
=>
void
;
handleHint
:
()
=>
Promise
<
void
>
;
handleReset
:
()
=>
void
;
handleSelectCard
:
(
row
:
number
,
col
:
number
)
=>
void
;
handleUndo
:
()
=>
void
;
hint
:
TriPeaksHint
|
null
;
hintError
:
string
|
null
;
loading
:
boolean
;
retry
:
()
=>
Promise
<
void
>
;
state
:
TriPeaksResponse
|
null
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
frontend
Loading...
Hook that manages TriPeaks game state, hints, and card removal actions.