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