Expand description
Multi-player Snake environment
A competitive N-player snake game where agents compete for food.
- Grid-based world
- Each snake grows when eating food
- Game ends when all snakes die (collision with wall/self/others)
- Rewards: +1 for food, -1 for death, small time penalty to encourage efficiency
Structs§
- Food
- Food pellet in the game
- Game
State - Game state for rendering
- Position
- Position on the grid
- Snake
- Individual snake in the game
- Snake
Env - Multi-agent Snake environment.
Enums§
Functions§
- make_
snake_ env - Create single-agent snake environment
Type Aliases§
- Snake
EnvSingle - Backward-compatible alias for
SnakeEnv; kept so older training scripts that importedSnakeEnvSinglecontinue to compile. PreferSnakeEnvin new code.