Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Seminar-HFO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
Seminar-HFO
Commits
06a18df5
You need to sign in or sign up before continuing.
Commit
06a18df5
authored
Feb 01, 2016
by
Matthew Hausknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed self._teams
parent
86e1cacb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
bin/Trainer.py
bin/Trainer.py
+0
-5
No files found.
bin/Trainer.py
View file @
06a18df5
...
@@ -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
]
==
'('
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment