-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwack_game.py
36 lines (29 loc) · 901 Bytes
/
wack_game.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
from wack_interface import *
def play_game():
"""
Runs the game! Displays the initial interface,
then assigns a manner of playing (simulation or play
themselves) and a politician, then plays the game
based on those parameters. Whether the player chooses
to play again or quit the game determines whether
the while loop continues or ends.
:return: none
"""
going = True
while going:
go = InitialInterface()
manner = go.select_manner()
politician = go.select_politician()
go.close()
if manner == 'sim':
game = SimulationInterface(politician)
else:
game = GameInterface(politician)
game.start()
score = game.play()
end = FinalInterface(manner, score, politician)
going = end.close()
def main():
play_game()
if __name__ == '__main__':
main()