/
game.py
31 lines (22 loc) · 1.06 KB
/
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
from wizard import Wizard
from firebolt import FireBolt
class Game():
def __init__(self):
self.wizard_one = Wizard()
self.wizard_two = Wizard()
self.game_field = None #TODO: Create Game Field
self.turn = 0
self.start_game()
def start_game(self):
wizard_one_spell = self.choose_spell(self.wizard_one)
wizard_two_spell = self.choose_spell(self.wizard_two)
if wizard_one_spell.get_cast_time(wizard_one_spell) > wizard_two_spell.get_cast_time(wizard_two_spell):
pass
elif wizard_one_spell.get_cast_time(wizard_one_spell) < wizard_two_spell.get_cast_time(wizard_two_spell):
def cast_spell(self, wizard, spell):
pass
""" This is a temporary function for testing. Eventually choose spell will be comprised of
the players choice of spell, and the AI's choice."""
def choose_spell(self, wizard):
spell = FireBolt() #todo figure out how bolt is being instantiated
return spell