Closed Ann-eat-apple closed 3 years ago
This looks similar to https://github.com/openai/retro/issues/198
For whatever reason, Atari Pong in retro has two problems: the button layout is weird, and the game requires that each player hit "BUTTON" after scoring to serve the ball.
2 player atari has 16 buttons available, here are some decent names for those buttons (in order): ["P1_BUTTON", None, "P1_SELECT", "P1_RESET", "P1_UP", "P1_DOWN", "P1_LEFT", "P1_RIGHT", "P2_BUTTON", None, "P2_SELECT", "P2_RESET", "P2_UP", "P2_DOWN", "P2_LEFT", "P2_RIGHT"]
These seem to work fine for FishingDerby-Atari2600
, but for Pong-Atari2600
, you actually need to use some different buttons:
Here are the indices for button, up, and down for each player (unless I counted incorrectly) P1: 0, 4, 5 P2: 15, 6, 7
Your script seems to work fine if I do obs, rew, done, info = env.step(np.random.randint(env.action_space.n), np.random.randint(env.action_space.n))
Closing due to inactivity
any help on this? I got the same issue, and the ball gets stuck
@christopherhesse
Did you try the workaround that I posted?
Issue summary
When I launch Pong-Atari with 2 players, it looks like the game gets stuck (never terminate), please render to see it.
[Put a detailed description of the issue here.]
System information