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
388df450
Commit
388df450
authored
Jun 22, 2016
by
Matthew Hausknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove stale state features after episode ends.
parent
fe11e61d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
src/HFO.cpp
src/HFO.cpp
+12
-1
No files found.
src/HFO.cpp
View file @
388df450
...
@@ -140,5 +140,16 @@ status_t HFOEnvironment::step() {
...
@@ -140,5 +140,16 @@ status_t HFOEnvironment::step() {
assert
(
agent
->
currentTime
().
cycle
()
==
(
current_cycle
+
1
));
assert
(
agent
->
currentTime
().
cycle
()
==
(
current_cycle
+
1
));
current_cycle
=
agent
->
currentTime
().
cycle
();
current_cycle
=
agent
->
currentTime
().
cycle
();
return
agent
->
getGameStatus
();
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
);
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