Commit 06a18df5 authored by Matthew Hausknecht's avatar Matthew Hausknecht

Removed self._teams

parent 86e1cacb
...@@ -43,7 +43,6 @@ class Trainer(object): ...@@ -43,7 +43,6 @@ class Trainer(object):
# =============== MISC =============== # # =============== MISC =============== #
self._offenseTeamName = '' # Name of the offensive team self._offenseTeamName = '' # Name of the offensive team
self._defenseTeamName = '' # Name of the defensive team self._defenseTeamName = '' # Name of the defensive team
self._teams = [] # Team indexes for offensive and defensive teams
self._isPlaying = False # Is a game being played? self._isPlaying = False # Is a game being played?
self._done = False # Are we finished? self._done = False # Are we finished?
self._agentPopen = [] # Agent's processes self._agentPopen = [] # Agent's processes
...@@ -133,10 +132,6 @@ class Trainer(object): ...@@ -133,10 +132,6 @@ class Trainer(object):
self._defenseOrder = [1] + defenseTeam._defense_order # 1 for goalie self._defenseOrder = [1] + defenseTeam._defense_order # 1 for goalie
return (offenseTeam, defenseTeam) return (offenseTeam, defenseTeam)
def teamToInd(self, team_name):
""" Returns the index of a given team. """
return self._teams.index(team_name)
def parseMsg(self, msg): def parseMsg(self, msg):
""" Parse a message """ """ Parse a message """
assert(msg[0] == '(') assert(msg[0] == '(')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment