Skip to content

Four rooms 4#555

Open
paulmerceur wants to merge 8 commits intoPufferAI:4.0from
paulmerceur:four-rooms-4
Open

Four rooms 4#555
paulmerceur wants to merge 8 commits intoPufferAI:4.0from
paulmerceur:four-rooms-4

Conversation

@paulmerceur
Copy link
Copy Markdown

Adds a native Ocean implementation of MiniGrid Four Rooms.

gif

Four Rooms is a simple sparse-reward navigation task with partial egocentric observations. The agent must navigate through connected rooms to reach a randomly placed goal. This implementation follows the MiniGrid action space, observation encoding, reward shaping, and wall-gap generation where practical, while keeping the native env configurable by map size.

Original environment: https://minigrid.farama.org/environments/minigrid/FourRoomsEnv/

I initially prototyped this in an older PufferLib fork and ported it to v4 for this PR. Feedback welcome.

Copy the Four Rooms native environment sources and config from the old pufferlib-v3 fork into the v4 layout. This is an intentionally unadapted checkpoint; follow-up commits will update it for the current v4 APIs and build system.
Update Four Rooms for the v4 static vecenv interface: binding metadata, float action/terminal buffers, per-env RNG, and v4 config keys. Remove the old v3 Python wrapper because v4 integrates native Ocean environments through build.sh and config files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant