frontend
Preparing search index...
hooks/useFreeCellGame
useFreeCellGame
Function useFreeCellGame
useFreeCellGame
()
:
{
error
:
string
|
null
;
exec
:
(
...
args
:
[
command
:
|
"reset"
|
"log"
|
"hint"
|
"move"
|
"giveup"
|
"autocomplete"
|
"undo"
,
from
?:
FreeCellMoveZone
,
to
?:
FreeCellMoveZone
,
]
,
)
=>
Promise
<
void
>
;
handleAutoComplete
:
()
=>
void
;
handleGiveUp
:
()
=>
void
;
handleHint
:
()
=>
Promise
<
void
>
;
handleReset
:
()
=>
void
;
handleSelectSource
:
(
zone
:
FreeCellMoveZone
)
=>
void
;
handleSelectTarget
:
(
zone
:
FreeCellMoveZone
)
=>
void
;
handleUndo
:
()
=>
void
;
hint
:
FreeCellHint
|
null
;
hintError
:
string
|
null
;
isAutoCompleting
:
boolean
;
loading
:
boolean
;
retry
:
()
=>
Promise
<
void
>
;
selectedSource
:
FreeCellMoveZone
|
null
;
state
:
FreeCellResponse
|
null
;
}
Hook that manages FreeCell game state, source selection, hints, and moves.
Returns
{
error
:
string
|
null
;
exec
:
(
...
args
:
[
command
:
|
"reset"
|
"log"
|
"hint"
|
"move"
|
"giveup"
|
"autocomplete"
|
"undo"
,
from
?:
FreeCellMoveZone
,
to
?:
FreeCellMoveZone
,
]
,
)
=>
Promise
<
void
>
;
handleAutoComplete
:
()
=>
void
;
handleGiveUp
:
()
=>
void
;
handleHint
:
()
=>
Promise
<
void
>
;
handleReset
:
()
=>
void
;
handleSelectSource
:
(
zone
:
FreeCellMoveZone
)
=>
void
;
handleSelectTarget
:
(
zone
:
FreeCellMoveZone
)
=>
void
;
handleUndo
:
()
=>
void
;
hint
:
FreeCellHint
|
null
;
hintError
:
string
|
null
;
isAutoCompleting
:
boolean
;
loading
:
boolean
;
retry
:
()
=>
Promise
<
void
>
;
selectedSource
:
FreeCellMoveZone
|
null
;
state
:
FreeCellResponse
|
null
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
frontend
Loading...
Hook that manages FreeCell game state, source selection, hints, and moves.