frontend
Preparing search index...
hooks/usePokerGame
usePokerGame
Function usePokerGame
usePokerGame
()
:
{
canExchange
:
boolean
;
clearSelection
:
()
=>
void
;
error
:
string
|
null
;
exec
:
(
...
args
:
[
command
:
|
"reset"
|
"stand"
|
"bet"
|
"exchange"
|
"fold"
|
"check"
|
"call"
|
"raise"
|
"allin"
|
"odds"
,
indices
?:
number
[]
,
amount
?:
number
,
config
?:
PokerConfigInput
,
humanPlayMs
?:
number
,
profile
?:
unknown
,
]
,
)
=>
Promise
<
void
>
;
loading
:
boolean
;
odds
:
PokerOdds
[]
|
null
;
retry
:
()
=>
Promise
<
void
>
;
selected
:
number
[]
;
state
:
PokerResponse
|
null
;
toggleCard
:
(
idx
:
number
)
=>
void
;
}
Hook that manages Poker game state, card exchange, and odds calculation.
Returns
{
canExchange
:
boolean
;
clearSelection
:
()
=>
void
;
error
:
string
|
null
;
exec
:
(
...
args
:
[
command
:
|
"reset"
|
"stand"
|
"bet"
|
"exchange"
|
"fold"
|
"check"
|
"call"
|
"raise"
|
"allin"
|
"odds"
,
indices
?:
number
[]
,
amount
?:
number
,
config
?:
PokerConfigInput
,
humanPlayMs
?:
number
,
profile
?:
unknown
,
]
,
)
=>
Promise
<
void
>
;
loading
:
boolean
;
odds
:
PokerOdds
[]
|
null
;
retry
:
()
=>
Promise
<
void
>
;
selected
:
number
[]
;
state
:
PokerResponse
|
null
;
toggleCard
:
(
idx
:
number
)
=>
void
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
frontend
Loading...
Hook that manages Poker game state, card exchange, and odds calculation.