NO_PIECE = None
NO_COLOR = None

NONE_PIECE = (NO_PIECE, NO_COLOR)

PAWN = 0
ROOK = 1
KNIGHT = 2
BISHOP = 3
QUEEN = 4
KING = 5

NO_PIECE_REPR = '.'
PAWN_REPR = 'p'
ROOK_REPR = 'r'
KNIGHT_REPR = 'n'
BISHOP_REPR = 'b'
QUEEN_REPR = 'q'
KING_REPR = 'k'

WHITE = 0
BLACK = 1

MOVE_ACTION = 0
ADD_ACTION = 1

PIECE_ID_TO_TEXT = {
  NO_PIECE: NO_PIECE_REPR,
  PAWN: PAWN_REPR,
  ROOK: ROOK_REPR,
  KNIGHT: KNIGHT_REPR,
  BISHOP: BISHOP_REPR,
  QUEEN: QUEEN_REPR,
  KING: KING_REPR
}

PIECE_TEXT_TO_ID = {
  NO_PIECE_REPR: NO_PIECE,
  PAWN_REPR: PAWN,
  ROOK_REPR: ROOK,
  KNIGHT_REPR: KNIGHT,
  BISHOP_REPR: BISHOP,
  QUEEN_REPR: QUEEN,
  KING_REPR: KING
}
