Skip to content

Conversation

@cpich3g
Copy link

@cpich3g cpich3g commented Nov 3, 2025

This pull request introduces support for Z-moves (Generation 7 battle mechanic) to the Pokemon battle environment, improves generation-specific documentation, and refines the Dockerfile for the server stack. The most important changes are grouped below.

Generation 7 Z-move support

  • Added a new z_move boolean field to the PokemonAction model to indicate when a Z-move should be used, and updated the step payload to include this field. [1] [2]
  • Added a new can_z_move boolean field to the PokemonObservation model to indicate if a Z-move is possible this turn, and updated documentation for all generation-specific mechanics. [1] [2]

Documentation and minor model fixes

  • Improved docstrings for PokemonAction and PokemonObservation to clarify which mechanics are available in which generations. [1] [2]
  • Fixed a duplicated battle_winner field in PokemonState.

Server and Dockerfile improvements

  • Updated the default battle format to Generation 9 (gen9randombattle) in the API and Dockerfile documentation. [1] [2]
  • Refactored the Dockerfile to use a Python base image, improved supervisor and logging configuration, and clarified port usage and health checks.

- Introduced a comprehensive tutorial for using the OpenEnv Pokemon Battle Environment.
- Included sections on setup, battle mechanics, observations, available moves, and actions.
- Demonstrated a complete battle simulation and a simple strategy agent.
- Ensured proper connection to the environment and handling of battle states.
- Created a Jupyter notebook tutorial for the Pokemon Battle Environment, covering setup, battle mechanics, and agent strategies.
- Added a shell script to test the Pokemon environment Docker image, ensuring services are running and performing basic environment interactions.
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 3, 2025
@init27 init27 merged commit ce2cf68 into meta-pytorch:project-pikachu Nov 3, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants