new Piece(type, id)
Pieces are round checkers that are being moved around the board.
Parameters:
Name | Type | Description |
---|---|---|
type |
PieceType | Type of piece |
id |
number | ID of piece |
Members
id :number
ID of piece
Type:
- number
type :PieceType
Type of piece (white/black)