Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add Atari difficulty level and a game mode option. #290

Open
1 task done
KPollux opened this issue Dec 9, 2023 · 3 comments
Open
1 task done
Assignees
Labels
enhancement New feature or request

Comments

@KPollux
Copy link

KPollux commented Dec 9, 2023

Motivation

In the realm of reinforcement learning and game simulation, the ability to adjust difficulty levels and game modes significantly enhances the flexibility and applicability of models. This feature request is motivated by the need for a more nuanced and customizable training environment in Atari games. Currently, while using the Arcade Learning Environment (ALE), I often find myself limited by the lack of options to adjust game difficulty and mode. This limitation is particularly noticeable when trying to simulate different scenarios or train models under varying conditions. This feature request is not directly related to an existing issue but is inspired by the concepts presented in Machado et al.'s paper [1] and the existing functionalities outlined in [2].

Solution

The ALE API for the gymnasium supports the adjustment of the 'mode' and 'difficulty' parameters on Atari games. If possible, you can add the corresponding parameters when using 'envpool.make'.

Alternatives

An alternative solution could be the development of separate game environments for each combination of difficulty level and mode. However, this approach will lead to unnecessary redundancy and could be less efficient compared to having a unified environment with selectable options.

Additional context

[1] Machado et al. “Revisiting the Arcade Learning Environment: Evaluation Protocols and Open Problems for General Agents” Journal of Artificial Intelligence Research (2018) URL: https://jair.org/index.php/jair/article/view/11182
[2] https://gymnasium.farama.org/environments/atari/

Checklist

  • I have checked that there is no similar issue in the repo (required)
@KPollux KPollux changed the title Add Atari difficulty level and a game mode option. [Feature Request] Add Atari difficulty level and a game mode option. Dec 9, 2023
@Trinkle23897
Copy link
Collaborator

Should be relatively straight forward (less than 30 lines of code), would you like to submit a PR?

@Trinkle23897 Trinkle23897 added the enhancement New feature or request label Dec 9, 2023
@KPollux
Copy link
Author

KPollux commented Dec 9, 2023

Should be relatively straight forward (less than 30 lines of code), would you like to submit a PR?

Yes, the modification does seem quite straightforward. Unfortunately, I'm not well-versed in C++ and thus unable to submit a PR. Thank you very much for your understanding and assistance!

@adi-vc
Copy link

adi-vc commented May 29, 2024

Is there an update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants