-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
63 lines (47 loc) · 1.03 KB
/
main.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
def show_intro():
"""
Prints out an introduction to the game with instructions on how to play
"""
pass
def no_winner() -> bool:
"""
Verify that there is no winner on the board
:return: true if there is no winner, false otherwise
"""
return False
def init_board():
"""
Initializes the game board
"""
pass
def show_board():
"""
Displays the game board
"""
pass
def ask_choice():
"""
Asks for the position of the next player on the board. Will verify the position before allowing the player to
place their piece. Additionally the player can choose to end the game as well.
"""
pass
def show_outro():
"""
Show a message declaring either a winner or a draw
"""
pass
def switch_player():
"""
Switch the current player
"""
pass
if __name__ == '__main__':
player = 'o'
board = [[]]
show_intro()
init_board()
while no_winner():
switch_player()
show_board()
ask_choice()
show_outro()