adjusted some zhings for new game.py functionality

This commit is contained in:
Sakimori 2024-08-14 20:53:35 -04:00
parent 6b34a7077a
commit b1106f23d5
2 changed files with 6 additions and 4 deletions

View file

@ -81,7 +81,9 @@ class Player(object):
def predictOpposingAction(self, opposingSkater):
raise NotImplementedError()
def chooseAtkAction(self):
def chooseAtkAction(self, actionDic, opposingSkater):
"""Picks an action/target node combo."""
predAction = self.predictOpposingAction(opposingSkater)
raise NotImplementedError()
def chooseDefAction(self):

View file

@ -3,8 +3,8 @@ from random import sample
class Team(object):
"""A team of either 6 or 10 skaters and 1-3 goalies."""
roster = [] #ordered, first line then second line; (#, name)
goalies = [] # (#, name)
roster:list[Player] = [] #ordered, first line then second line; (#, name)
goalies:Player = [] # (#, name)
name = None
shortname = None
@ -19,4 +19,4 @@ class Team(object):
def chooseGoalie(self):
return sample(self.goalies,1)
return sample(self.goalies,1)[0]