Skip to content

Commit

Permalink
fixed bugs in envs
Browse files Browse the repository at this point in the history
  • Loading branch information
benblack769 committed May 5, 2020
1 parent 8078940 commit 7b49739
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/games/supported/MarioBros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ bool MarioBrosSettings::isTerminal() const { return m_terminal; }
reward_t MarioBrosSettings::getReward() const { return m_reward; }
reward_t MarioBrosSettings::getRewardP2() const { return m_reward_p2; }

int MarioBrosSettings::lives() override { return m_lives; }
int MarioBrosSettings::livesP2() override { return m_lives_p2; }
int MarioBrosSettings::lives() { return m_lives; }
int MarioBrosSettings::livesP2() { return m_lives_p2; }

bool MarioBrosSettings::isMinimal(const Action& a) const {
switch (a) {
Expand Down
4 changes: 2 additions & 2 deletions src/games/supported/WizardOfWor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ bool WizardOfWorSettings::isTerminal() const { return m_terminal; };
reward_t WizardOfWorSettings::getReward() const { return m_reward; }
reward_t WizardOfWorSettings::getRewardP2() const { return m_reward_p2; }

int lives() { return m_lives; }
int livesP2() { return m_lives_p2; }
int WizardOfWorSettings::lives() { return m_lives; }
int WizardOfWorSettings::livesP2() { return m_lives_p2; }

/* is an action part of the minimal set? */
bool WizardOfWorSettings::isMinimal(const Action& a) const {
Expand Down

0 comments on commit 7b49739

Please sign in to comment.