Preparing search index...
The search index is not available
chessops
chessops
squareSet
SquareSet
Class SquareSet
An immutable set of squares, implemented as a bitboard.
Implements
Iterable
<
Square
>
Index
Constructors
constructor
Properties
hi
lo
Methods
[iterator]
bswap64
complement
diff
equals
first
has
intersect
intersects
is
Disjoint
is
Empty
last
minus64
more
Than
One
non
Empty
rbit64
reversed
set
shl64
shr64
single
Square
size
subset
Of
superset
Of
toggle
union
with
without
without
First
xor
backrank
backranks
center
corners
dark
Squares
empty
from
File
from
Rank
from
Square
full
light
Squares
Constructors
constructor
new
Square
Set
(
lo
,
hi
)
:
SquareSet
Parameters
lo
:
number
hi
:
number
Returns
SquareSet
Properties
Readonly
hi
hi
:
number
Readonly
lo
lo
:
number
Methods
[iterator]
[iterator]
(
)
:
Iterator
<
number
,
any
,
any
>
Returns
Iterator
<
number
,
any
,
any
>
bswap64
bswap64
(
)
:
SquareSet
Returns
SquareSet
complement
complement
(
)
:
SquareSet
Returns
SquareSet
diff
diff
(
other
)
:
SquareSet
Parameters
other
:
SquareSet
Returns
SquareSet
equals
equals
(
other
)
:
boolean
Parameters
other
:
SquareSet
Returns
boolean
first
first
(
)
:
undefined
|
number
Returns
undefined
|
number
has
has
(
square
)
:
boolean
Parameters
square
:
number
Returns
boolean
intersect
intersect
(
other
)
:
SquareSet
Parameters
other
:
SquareSet
Returns
SquareSet
intersects
intersects
(
other
)
:
boolean
Parameters
other
:
SquareSet
Returns
boolean
is
Disjoint
is
Disjoint
(
other
)
:
boolean
Parameters
other
:
SquareSet
Returns
boolean
is
Empty
is
Empty
(
)
:
boolean
Returns
boolean
last
last
(
)
:
undefined
|
number
Returns
undefined
|
number
minus64
minus64
(
other
)
:
SquareSet
Parameters
other
:
SquareSet
Returns
SquareSet
more
Than
One
more
Than
One
(
)
:
boolean
Returns
boolean
non
Empty
non
Empty
(
)
:
boolean
Returns
boolean
rbit64
rbit64
(
)
:
SquareSet
Returns
SquareSet
reversed
reversed
(
)
:
Iterable
<
number
,
any
,
any
>
Returns
Iterable
<
number
,
any
,
any
>
set
set
(
square
,
on
)
:
SquareSet
Parameters
square
:
number
on
:
boolean
Returns
SquareSet
shl64
shl64
(
shift
)
:
SquareSet
Parameters
shift
:
number
Returns
SquareSet
shr64
shr64
(
shift
)
:
SquareSet
Parameters
shift
:
number
Returns
SquareSet
single
Square
single
Square
(
)
:
undefined
|
number
Returns
undefined
|
number
size
size
(
)
:
number
Returns
number
subset
Of
subset
Of
(
other
)
:
boolean
Parameters
other
:
SquareSet
Returns
boolean
superset
Of
superset
Of
(
other
)
:
boolean
Parameters
other
:
SquareSet
Returns
boolean
toggle
toggle
(
square
)
:
SquareSet
Parameters
square
:
number
Returns
SquareSet
union
union
(
other
)
:
SquareSet
Parameters
other
:
SquareSet
Returns
SquareSet
with
with
(
square
)
:
SquareSet
Parameters
square
:
number
Returns
SquareSet
without
without
(
square
)
:
SquareSet
Parameters
square
:
number
Returns
SquareSet
without
First
without
First
(
)
:
SquareSet
Returns
SquareSet
xor
xor
(
other
)
:
SquareSet
Parameters
other
:
SquareSet
Returns
SquareSet
Static
backrank
backrank
(
color
)
:
SquareSet
Parameters
color
:
"black"
|
"white"
Returns
SquareSet
Static
backranks
backranks
(
)
:
SquareSet
Returns
SquareSet
Static
center
center
(
)
:
SquareSet
Returns
SquareSet
Static
corners
corners
(
)
:
SquareSet
Returns
SquareSet
Static
dark
Squares
dark
Squares
(
)
:
SquareSet
Returns
SquareSet
Static
empty
empty
(
)
:
SquareSet
Returns
SquareSet
Static
from
File
from
File
(
file
)
:
SquareSet
Parameters
file
:
number
Returns
SquareSet
Static
from
Rank
from
Rank
(
rank
)
:
SquareSet
Parameters
rank
:
number
Returns
SquareSet
Static
from
Square
from
Square
(
square
)
:
SquareSet
Parameters
square
:
number
Returns
SquareSet
Static
full
full
(
)
:
SquareSet
Returns
SquareSet
Static
light
Squares
light
Squares
(
)
:
SquareSet
Returns
SquareSet
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
hi
lo
Methods
[iterator]
bswap64
complement
diff
equals
first
has
intersect
intersects
is
Disjoint
is
Empty
last
minus64
more
Than
One
non
Empty
rbit64
reversed
set
shl64
shr64
single
Square
size
subset
Of
superset
Of
toggle
union
with
without
without
First
xor
backrank
backranks
center
corners
dark
Squares
empty
from
File
from
Rank
from
Square
full
light
Squares
chessops
Loading...
An immutable set of squares, implemented as a bitboard.