Snake on Pygame

Classic Snake in Python and Pygame, playable by a person or controlled by a DQN agent.

Snake game in Python and Pygame that humans can play and AI agents can control through a gym-style API.

Highlights

  • Playable by humans, with single games and a benchmark mode.

  • Gym-style API (reset, state, step, render) for AI agents.

  • Benchmark mode records your mean score and steps over 10 games.

Gameplay of Snake on Pygame

Need something like this?

I build and ship projects like this for teams. Tell me what you need.

Let's talk