-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
58 lines (48 loc) · 1.16 KB
/
settings.py
File metadata and controls
58 lines (48 loc) · 1.16 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Game Properties
TILE = 100 # Change this to resize the window to fit the board 100 is recommended if need smaller try 80
BOARDLEN = 8
WIDTH = TILE * BOARDLEN # (800)
HEIGHT = TILE * BOARDLEN # (800)
TITLE = "Chess"
FPS = 60
# SCORES FOR THE PIECES
PIECES_SCORE = {
"P": 1,
"H": 3,
"B": 3,
"R": 5,
"Q": 9,
"K": 0
}
# CHECKMATE HAS TO HAVE A HIGHER SCORE THAN ANYTHING PIECES CAN HAVE
CHECKMATE_SCORE = {
"WIN": 1000,
"LOSE": -1000,
"TIE": 0
}
# Colours
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
YELLOW = (255, 255, 0)
CYAN = (0, 255, 255)
MAGENTA = (255, 0, 255)
NAVY = (28, 42, 80)
# alpha and beta init values
ALPHA = float('-inf')
BETA = float('inf')
# Pieces Path
BKING = "pieces/black/BKing.png"
WKING = "pieces/white/WKing.png"
BQUEEN = "pieces/black/BQueen.png"
WQUEEN = "pieces/white/WQueen.png"
BROOK = "pieces/black/BRook.png"
WROOK = "pieces/white/WRook.png"
BBISHOP = "pieces/black/BBishop.png"
WBISHOP = "pieces/white/WBishop.png"
BKNIGHT = "pieces/black/BKnight.png"
WKNIGHT = "pieces/white/WKnight.png"
BPAWN = "pieces/black/BPawn.png"
WPAWN = "pieces/white/WPawn.png"