tweak piece enum
This commit is contained in:
parent
fb70f9ab1b
commit
e20f297fc6
1 changed files with 6 additions and 6 deletions
|
|
@ -4,12 +4,12 @@ export type GameListener = (board: Game) => void;
|
|||
export enum Piece {
|
||||
// bit 0-2: piece type (0-6)
|
||||
EMPTY = 0,
|
||||
KING = 1,
|
||||
QUEEN = 2,
|
||||
ROOK = 3,
|
||||
BISHOP = 4,
|
||||
KNIGHT = 5,
|
||||
PAWN = 6,
|
||||
QUEEN = 1,
|
||||
ROOK = 2,
|
||||
BISHOP = 3,
|
||||
KNIGHT = 4,
|
||||
PAWN = 5,
|
||||
KING = 6,
|
||||
|
||||
// bit 3: color (0-1)
|
||||
WHITE = 0<<3,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue