Punit71/firefighter-gridworld-leaderboard
0
๐ Firefighter GridWorld Leaderboard
A reinforcement learning benchmark in a 4x4 grid world where the agent must:
- Pick up a water bucket ๐ง
- Extinguish a fire ๐ฅ
- Reach the goal ๐
The environment features deterministic and stochastic versions with discrete actions, rewards, penalties, and sprite-based rendering.
๐ Leaderboard (300 Episodes)
๐งช Evaluation Protocol
- Each agent is evaluated over 300 episodes
- Maximum steps per episode: 60
- Environment starts with the robot in the top-left
- Rewards:
- +10: extinguish fire and reach goal
- โ1: step penalty
- โ5: invalid actions or skipping steps
๐ Setup
pip install -r requirements.txt๐ Evaluate Your Agent
- Clone the repo:
git clone https://huggingface.co/spaces/YOUR_USERNAME/firefighter-gridworld-leaderboard
cd firefighter-gridworld-leaderboard- Run evaluation:
python evaluation/evaluate_custom_agent.py --path ./my_agent.zip --algo PPO- Submit your
eval_results.jsonvia Pull Request.
๐ง Environment API
Custom environment follows Gymnasium standards:
import gymnasium as gym
from env.firefighter_env import FireFighterEnv
env = FireFighterEnv()
obs, info = env.reset()
for _ in range(60):
action = env.action_space.sample()
obs, reward, terminated, truncated, info = env.step(action)
if terminated or truncated:
break๐ฅ Submissions
Include in your Pull Request:
eval_results.json- Description of your model and training setup
- GIF of successful episode (optional)
๐ฆ Files
env/โ environment codeagents/โ training scripts (PPO, DQN, MCTS)evaluation/โ evaluation and renderingmodels/โ saved agentsassets/โ sprites and animation
๐ License
MIT License. Contributions welcome!
