Slither-in Inspired Snake Environment for OpenAI Gym (Part of Requests for Research 2.0)
Slither-in Inspired Snake Environment for OpenAI Gym (Part of Requests for Research 2.0)
observation_space
- A tuple of size: (n_agents, resolution, resolution)
, where n_agents
is the number of agents in the game (as initialized) and resolution
is a number calculated by taking the screen’s height and dividing it by the spacing, both of which can be specified in the environment’s constructor.action_space
- A n_agents
-sized array that takes in 4 discrete actions [0, 1, 2, 3]
, which corresponds to the directions that each agent should move at the next timestep. The agents and environment abide by the same rules and dynamics of the classic Snake game (i.e can’t go backwards, die if they hit themselves, etc.). A more detailed description can be found here.
Each observation per agent is a matrix that corresponds to the agent’s place in the grid.