Farama-Foundation / Arcade-Learning-Environment

The Arcade Learning Environment (ALE) -- a platform for AI research.
https://ale.farama.org/
GNU General Public License v2.0
2.18k stars 424 forks source link

Fix main page example 'Breakout' to 'breakout' #570

Closed dscain closed 2 weeks ago

dscain commented 2 weeks ago

This PR fixes a typo in the Quickstart of README.md.

If one follows the README.md example below in Linux:

from ale_py import ALEInterface, roms

ale = ALEInterface()
x = roms.get_rom_path("Breakout")
ale.loadROM(x)
ale.reset_game()

reward = ale.act(0)  # noop
screen_obs = ale.getScreenRGB()

you get UserWarning: Rom Breakout not supported. and get_rom_path returns None and then

TypeError: loadROM(): incompatible function arguments. The following argument types are supported:
    1. (self: ale_py._ale_py.ALEInterface, arg0: str) -> None
    2. (self: ale_py._ale_py.ALEInterface, arg0: os.PathLike) -> None

The issue is the file search is case sensitive. To fix, just run the same with breakout instead of Breakout.