Skip to content

Commit

Permalink
step by step
Browse files Browse the repository at this point in the history
  • Loading branch information
jet-sony committed Aug 1, 2024
1 parent b24830f commit 9d3605d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/ale_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,16 +259,9 @@ int ALEInterface::lives() {
// user's responsibility to check if the game has ended and reset
// when necessary - this method will keep pressing buttons on the
// game over screen.
reward_t ALEInterface::act(Action action) {
return environment->act(action, PLAYER_B_NOOP);
}

// Applies a continuous action to the game and returns the reward. It is the
// user's responsibility to check if the game has ended and reset
// when necessary - this method will keep pressing buttons on the
// game over screen.
reward_t ALEInterface::actContinuous(float r, float theta, float fire) {
return environment->actContinuous(r, theta, fire, 0.0, 0.0, 0.0);
// Intentionally set player B actions to 0 since we are in single player mode
reward_t ALEInterface::act(float r, float theta, float fire) {

Check failure on line 263 in src/ale_interface.cpp

View workflow job for this annotation

GitHub Actions / macos-12 • x86_64

out-of-line definition of 'act' does not match any declaration in 'ale::ALEInterface'
return environment->act(r, theta, fire, 0.0, 0.0, 0.0);

Check failure on line 264 in src/ale_interface.cpp

View workflow job for this annotation

GitHub Actions / macos-12 • x86_64

too many arguments to function call, expected 2, have 6
}

// Returns the vector of modes available for the current game.
Expand Down

0 comments on commit 9d3605d

Please sign in to comment.