-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboard.py
More file actions
37 lines (32 loc) · 1.67 KB
/
board.py
File metadata and controls
37 lines (32 loc) · 1.67 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
mark_dict = {"a1": " ", "b1": " ", "c1": " ", "a2": " ", "b2": " ", "c2": " ", "a3": " ", "b3": " ", "c3": " "}
winning_combos = [["a1", "b1", "c1"], ["a2", "b2", "c2"], ["a3", "b3", "c3"],
["a1", "a2", "a3"], ["b1", "b2", "b3"], ["c1", "c2", "c3"],
["a1", "b2", "c3"], ["a3", "b2", "c1"]]
placeholder_game_board = (" a b c"
"\n | | "
"\n1 | | "
"\n | | "
"\n _____|_____|_____"
"\n | | "
"\n2 | | "
"\n | | "
"\n _____|_____|_____"
"\n | | "
"\n3 | | "
"\n | |")
game_board = (" a b c"
"\n | | "
"\n1 {a1} | {b1} | {c1} "
"\n | | "
"\n _____|_____|_____"
"\n | | "
"\n2 {a2} | {b2} | {c2} "
"\n | | "
"\n _____|_____|_____"
"\n | | "
"\n3 {a3} | {b3} | {c3} "
"\n | |")
# #Placeholder Board:
# game_board = (f" a b c\n | | \n1 - | - | - \n | | \n _____|_____|_____"
# "\n | | \n2 - | - | - \n | | \n _____|_____|_____\n | | "
# "\n3 - | - | - \n | |")