chessops
Preparing search index...
variant
Atomic
Class Atomic
Hierarchy (
View Summary
)
Position
Atomic
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
epSquare
:
undefined
|
number
fullmoves
fullmoves
:
number
halfmoves
halfmoves
:
number
pockets
pockets
:
undefined
|
Material
remaining
Checks
remainingChecks
:
undefined
|
RemainingChecks
Readonly
rules
rules
:
|
"chess"
|
"antichess"
|
"kingofthehill"
|
"3check"
|
"atomic"
|
"horde"
|
"racingkings"
|
"crazyhouse"
turn
turn
:
"black"
|
"white"
Methods
all
Dests
allDests
(
ctx
?:
Context
)
:
Map
<
number
,
SquareSet
>
Parameters
Optional
ctx
:
Context
Returns
Map
<
number
,
SquareSet
>
clone
clone
()
:
Atomic
Returns
Atomic
ctx
ctx
()
:
Context
Returns
Context
dests
dests
(
square
:
number
,
ctx
?:
Context
)
:
SquareSet
Parameters
square
:
number
Optional
ctx
:
Context
Returns
SquareSet
drop
Dests
dropDests
(
_ctx
?:
Context
)
:
SquareSet
Parameters
Optional
_ctx
:
Context
Returns
SquareSet
has
Dests
hasDests
(
ctx
?:
Context
)
:
boolean
Parameters
Optional
ctx
:
Context
Returns
boolean
has
Insufficient
Material
hasInsufficientMaterial
(
color
:
"black"
|
"white"
)
:
boolean
Parameters
color
:
"black"
|
"white"
Returns
boolean
is
Check
isCheck
()
:
boolean
Returns
boolean
is
Checkmate
isCheckmate
(
ctx
?:
Context
)
:
boolean
Parameters
Optional
ctx
:
Context
Returns
boolean
is
End
isEnd
(
ctx
?:
Context
)
:
boolean
Parameters
Optional
ctx
:
Context
Returns
boolean
is
Insufficient
Material
isInsufficientMaterial
()
:
boolean
Returns
boolean
is
Legal
isLegal
(
move
:
Move
,
ctx
?:
Context
)
:
boolean
Parameters
move
:
Move
Optional
ctx
:
Context
Returns
boolean
is
Stalemate
isStalemate
(
ctx
?:
Context
)
:
boolean
Parameters
Optional
ctx
:
Context
Returns
boolean
is
Variant
End
isVariantEnd
()
:
boolean
Returns
boolean
king
Attackers
kingAttackers
(
square
:
number
,
attacker
:
"black"
|
"white"
,
occupied
:
SquareSet
,
)
:
SquareSet
Parameters
square
:
number
attacker
:
"black"
|
"white"
occupied
:
SquareSet
Returns
SquareSet
outcome
outcome
(
ctx
?:
Context
)
:
undefined
|
Outcome
Parameters
Optional
ctx
:
Context
Returns
undefined
|
Outcome
play
play
(
move
:
Move
)
:
void
Parameters
move
:
Move
Returns
void
Protected
play
Capture
At
playCaptureAt
(
square
:
number
,
captured
:
Piece
)
:
void
Parameters
square
:
number
captured
:
Piece
Returns
void
reset
reset
()
:
void
Returns
void
Protected
setup
Unchecked
setupUnchecked
(
setup
:
Setup
)
:
void
Parameters
setup
:
Setup
Returns
void
to
Setup
toSetup
()
:
Setup
Returns
Setup
Protected
validate
validate
()
:
Result
<
undefined
,
PositionError
>
Returns
Result
<
undefined
,
PositionError
>
variant
Outcome
variantOutcome
(
_ctx
?:
Context
)
:
undefined
|
Outcome
Parameters
Optional
_ctx
:
Context
Returns
undefined
|
Outcome
Static
default
default
()
:
Atomic
Returns
Atomic
Static
from
Setup
fromSetup
(
setup
:
Setup
)
:
Result
<
Atomic
,
PositionError
>
Parameters
setup
:
Setup
Returns
Result
<
Atomic
,
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...