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
fb153a61
Commit
fb153a61
authored
Jun 24, 2016
by
Matthew Hausknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify interface.
parent
19460175
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
src/HFO.cpp
src/HFO.cpp
+1
-7
No files found.
src/HFO.cpp
View file @
fb153a61
...
...
@@ -120,9 +120,6 @@ Player HFOEnvironment::playerOnBall() {
}
status_t
HFOEnvironment
::
step
()
{
assert
(
agent
->
currentTime
().
cycle
()
==
current_cycle
);
assert
(
ready_for_action
);
// Execute the action
agent
->
executeAction
();
...
...
@@ -137,16 +134,13 @@ status_t HFOEnvironment::step() {
// Update the state features
agent
->
preAction
();
assert
(
agent
->
currentTime
().
cycle
()
==
(
current_cycle
+
1
));
current_cycle
=
agent
->
currentTime
().
cycle
();
status_t
status
=
agent
->
getGameStatus
();
// If the episode is over, take three NOOPs to refresh state features
if
(
status
!=
IN_GAME
&&
status
!=
SERVER_DOWN
)
{
for
(
int
i
=
0
;
i
<
3
;
++
i
)
{
act
(
NOOP
);
if
(
step
()
==
SERVER_DOWN
)
{
return
SERVER_DOWN
;
}
step
();
}
}
return
status
;
...
...
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