From fb153a615638ea696c3335dc96fbd37a8c8833d1 Mon Sep 17 00:00:00 2001 From: Matthew Hausknecht <matthew.hausknecht@gmail.com> Date: Fri, 24 Jun 2016 12:13:09 -0500 Subject: [PATCH] Simplify interface. --- src/HFO.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/HFO.cpp b/src/HFO.cpp index cc0d9a9..7d0abc9 100644 --- a/src/HFO.cpp +++ b/src/HFO.cpp @@ -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; -- 2.24.1