Preparing search index...
The search index is not available
chessops
chessops
chess
Chess
Class Chess
Hierarchy (
view full
)
Position
Chess
Index
Properties
board
castles
ep
Square
fullmoves
halfmoves
pockets
remaining
Checks
rules
turn
Methods
all
Dests
clone
ctx
dests
drop
Dests
has
Dests
has
Insufficient
Material
is
Check
is
Checkmate
is
End
is
Insufficient
Material
is
Legal
is
Stalemate
is
Variant
End
king
Attackers
outcome
play
play
Capture
At
reset
setup
Unchecked
to
Setup
validate
variant
Outcome
default
from
Setup
Properties
board
board
:
Board
castles
castles
:
Castles
ep
Square
ep
Square
:
undefined
|
number
fullmoves
fullmoves
:
number
halfmoves
halfmoves
:
number
pockets
pockets
:
undefined
|
Material
remaining
Checks
remaining
Checks
:
undefined
|
RemainingChecks
Readonly
rules
rules
:
|
"chess"
|
"antichess"
|
"kingofthehill"
|
"3check"
|
"atomic"
|
"horde"
|
"racingkings"
|
"crazyhouse"
turn
turn
:
"black"
|
"white"
Methods
all
Dests
all
Dests
(
ctx
?
)
:
Map
<
number
,
SquareSet
>
Parameters
Optional
ctx
:
Context
Returns
Map
<
number
,
SquareSet
>
clone
clone
(
)
:
Chess
Returns
Chess
ctx
ctx
(
)
:
Context
Returns
Context
dests
dests
(
square
,
ctx
?
)
:
SquareSet
Parameters
square
:
number
Optional
ctx
:
Context
Returns
SquareSet
drop
Dests
drop
Dests
(
_ctx
?
)
:
SquareSet
Parameters
Optional
_ctx
:
Context
Returns
SquareSet
has
Dests
has
Dests
(
ctx
?
)
:
boolean
Parameters
Optional
ctx
:
Context
Returns
boolean
has
Insufficient
Material
has
Insufficient
Material
(
color
)
:
boolean
Parameters
color
:
"black"
|
"white"
Returns
boolean
is
Check
is
Check
(
)
:
boolean
Returns
boolean
is
Checkmate
is
Checkmate
(
ctx
?
)
:
boolean
Parameters
Optional
ctx
:
Context
Returns
boolean
is
End
is
End
(
ctx
?
)
:
boolean
Parameters
Optional
ctx
:
Context
Returns
boolean
is
Insufficient
Material
is
Insufficient
Material
(
)
:
boolean
Returns
boolean
is
Legal
is
Legal
(
move
,
ctx
?
)
:
boolean
Parameters
move
:
Move
Optional
ctx
:
Context
Returns
boolean
is
Stalemate
is
Stalemate
(
ctx
?
)
:
boolean
Parameters
Optional
ctx
:
Context
Returns
boolean
is
Variant
End
is
Variant
End
(
)
:
boolean
Returns
boolean
king
Attackers
king
Attackers
(
square
,
attacker
,
occupied
)
:
SquareSet
Parameters
square
:
number
attacker
:
"black"
|
"white"
occupied
:
SquareSet
Returns
SquareSet
outcome
outcome
(
ctx
?
)
:
undefined
|
Outcome
Parameters
Optional
ctx
:
Context
Returns
undefined
|
Outcome
play
play
(
move
)
:
void
Parameters
move
:
Move
Returns
void
Protected
play
Capture
At
play
Capture
At
(
square
,
captured
)
:
void
Parameters
square
:
number
captured
:
Piece
Returns
void
reset
reset
(
)
:
void
Returns
void
Protected
setup
Unchecked
setup
Unchecked
(
setup
)
:
void
Parameters
setup
:
Setup
Returns
void
to
Setup
to
Setup
(
)
:
Setup
Returns
Setup
Protected
validate
validate
(
)
:
Result
<
undefined
,
PositionError
>
Returns
Result
<
undefined
,
PositionError
>
variant
Outcome
variant
Outcome
(
_ctx
?
)
:
undefined
|
Outcome
Parameters
Optional
_ctx
:
Context
Returns
undefined
|
Outcome
Static
default
default
(
)
:
Chess
Returns
Chess
Static
from
Setup
from
Setup
(
setup
)
:
Result
<
Chess
,
PositionError
>
Parameters
setup
:
Setup
Returns
Result
<
Chess
,
PositionError
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
board
castles
ep
Square
fullmoves
halfmoves
pockets
remaining
Checks
rules
turn
Methods
all
Dests
clone
ctx
dests
drop
Dests
has
Dests
has
Insufficient
Material
is
Check
is
Checkmate
is
End
is
Insufficient
Material
is
Legal
is
Stalemate
is
Variant
End
king
Attackers
outcome
play
play
Capture
At
reset
setup
Unchecked
to
Setup
validate
variant
Outcome
default
from
Setup
chessops
Loading...