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

Access to opponent's last move #411

Open
Kymawave opened this issue Aug 31, 2023 · 1 comment
Open

Access to opponent's last move #411

Kymawave opened this issue Aug 31, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Kymawave
Copy link

Obtaining an env_player's last move has been pretty straight forward by subclassing and adding some simple code to GenXEnvSinglePlayer, but I can't really figure out how to do this if the opponent isn't an env_player. Does anyone have an idea of how to do this? Accessing past states is pretty important for making game decisions, especially if you are not taking an RNN route.

@hsahovic hsahovic self-assigned this Oct 18, 2023
@hsahovic hsahovic added the enhancement New feature or request label Oct 18, 2023
@hsahovic hsahovic added this to To do in Poke-env - general via automation Oct 18, 2023
@quadraticmuffin
Copy link

You'd probably want to go to the _moved method of the Pokemon class and add something like the following:

if use:
    self._last_move = move

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
Development

No branches or pull requests

3 participants