Preparing search index...
The search index is not available
chessops
chessops
setup
Material
Class Material
Implements
ByColor
<
MaterialSide
>
Index
Constructors
constructor
Properties
black
white
Methods
add
clone
count
equals
has
Non
Pawns
has
Pawns
is
Empty
non
Empty
size
subtract
empty
from
Board
Constructors
constructor
new
Material
(
white
,
black
)
:
Material
Parameters
white
:
MaterialSide
black
:
MaterialSide
Returns
Material
Properties
black
black
:
MaterialSide
white
white
:
MaterialSide
Methods
add
add
(
other
)
:
Material
Parameters
other
:
Material
Returns
Material
clone
clone
(
)
:
Material
Returns
Material
count
count
(
role
)
:
number
Parameters
role
:
|
"pawn"
|
"knight"
|
"bishop"
|
"rook"
|
"queen"
|
"king"
Returns
number
equals
equals
(
other
)
:
boolean
Parameters
other
:
Material
Returns
boolean
has
Non
Pawns
has
Non
Pawns
(
)
:
boolean
Returns
boolean
has
Pawns
has
Pawns
(
)
:
boolean
Returns
boolean
is
Empty
is
Empty
(
)
:
boolean
Returns
boolean
non
Empty
non
Empty
(
)
:
boolean
Returns
boolean
size
size
(
)
:
number
Returns
number
subtract
subtract
(
other
)
:
Material
Parameters
other
:
Material
Returns
Material
Static
empty
empty
(
)
:
Material
Returns
Material
Static
from
Board
from
Board
(
board
)
:
Material
Parameters
board
:
Board
Returns
Material
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
black
white
Methods
add
clone
count
equals
has
Non
Pawns
has
Pawns
is
Empty
non
Empty
size
subtract
empty
from
Board
chessops
Loading...