# deeparcade-snake-ai

> Snake AI tournament: a random mover, greedy heuristic, Q-learning, a residual CNN DQN and MCTS compete on seeded games with reproducible, recorded evaluation scores.

deeparcade-snake-ai is a free AI agent skill on Agensi by Faiyaz Enayet. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Faiyaz Enayet](https://www.agensi.io/creators/faiyaz-enayet)
- Version: 1.0
- Last updated: 2026-11-19
- Security: scan passed (2026-11-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/deeparcade-snake-ai
- Tags: snake, game-ai, reinforcement-learning, dqn, mcts, q-learning, benchmark, python

## About this skill

A game of Snake where the AI actually learned how to play. Five players, one arena, same seeded games: a random mover, a greedy heuristic, tabular Q-learning trained over 30,000 episodes, a residual CNN DQN trained for 300,000 steps, and MCTS search. Every score comes from recorded evaluation episodes. The CNN matches the best heuristic at 21.86 held-out, and MCTS tops the table at 44.1. Clone the repo, run the tournament, reproduce the numbers, or just watch the trained CNN play right in your browser. MIT licensed, Python plus an optional C++ engine.

## Requires

- Python
- Git

## Known limitations

Requires Python 3.10+. Native C++20 engine must be built separately for tournament modes. Evaluation namespaces are strictly isolated and non-transferable.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the deeparcade-snake-ai skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific AI architectures can I benchmark with this skill?

The skill provides a unified environment to benchmark Reinforcement Learning (DQN), Tabular Q-Learning, Monte Carlo Tree Search (MCTS), and custom heuristics on identical seeded games for statistically significant comparisons.

### Do I need C++ knowledge to use the benchmarking engine?

While the core evaluation scripts are Python-based, the high-speed tournament engine is built in C++20 to ensure maximum performance and fair inference speed benchmarking across different agents.

### Can I use this to compare different neural network architectures like CNNs vs MLPs?

Yes, it allows you to compare the performance of spatial input (Residual CNN) against flat vectors (MLP) to determine which state representation is more effective for your specific agent.

### What is included in the purchase of the deeparcade snake ai skill?

You will receive the full benchmark suite, the native C++ tournament engine, pre-recorded evaluation data in the `runs/` directory, and the tools to generate browser-accessible visualization dashboards.

### Are there any specific hardware or software requirements to run the evaluations?

The skill requires Python 3.10+ and a C++20 compatible compiler (via CMake) for the tournament workflows; it is designed to run locally to ensure high-speed inference and data privacy.

### How does this benchmarking tool differ from simply testing agents using an LLM?

Unlike an LLM, this skill uses a standardized engine with strict seed control and state channels, ensuring that agent performance differences are due to policy logic rather than environmental randomness.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
