-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
37 lines (30 loc) · 1018 Bytes
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"""
File used to define default colors, sizes and other static variables.
"""
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 1000
WHITE_SQUARE_COLOR = (235, 236, 208, 255)
BLACK_SQUARE_COLOR = (119, 149, 86, 255)
WHITE_YELLOW_COLOR = (246, 246, 105, 255)
BLACK_YELLOW_COLOR = (186, 202, 43, 255)
NUMBER_OF_COLUMNS = 8
NUMBER_OF_ROWS = 8
SQUARE_SIZE = SCREEN_WIDTH/NUMBER_OF_COLUMNS
POSSIBLE_MOVE_HIGHLIGHT = (200, 52, 47, 125)
WHITE_COLOR_IDENTIFIER = 'w'
WHITE_PAWN_IDENTIFIER = 'wp'
WHITE_ROOK_IDENTIFIER = 'wR'
WHITE_KNIGHT_IDENTIFIER = 'wN'
WHITE_BISHOP_IDENTIFIER = 'wB'
WHITE_QUEEN_IDENTIFIER = 'wQ'
WHITE_KING_IDENTIFIER = 'wK'
BLACK_COLOR_IDENTIFIER = 'b'
BLACK_PAWN_IDENTIFIER = 'bp'
BLACK_ROOK_IDENTIFIER = 'bR'
BLACK_KNIGHT_IDENTIFIER = 'bN'
BLACK_BISHOP_IDENTIFIER = 'bB'
BLACK_QUEEN_IDENTIFIER = 'bQ'
BLACK_KING_IDENTIFIER = 'bK'
EMPTY_IDENTIFIER = '--'
ALPHACOLS = {0: 'a', 1: 'b', 2: 'c', 3: 'd', 4: 'e', 5: 'f', 6: 'g', 7: 'h'}
ALPHATONR = {'a': 0, 'b': 1, 'c': 2, 'd': 3, 'e': 4, 'f': 5, 'g': 6, 'h': 7}