Sneks
Snake game for Sneks NFT holders on Base, with daily X posts captioned by Claude
🐍
SNEKS
Bi-weekly prizes for top scores
Technical Breakdown
Frontend: P5.js Game Engine
Classic snake. A seeded random generator makes each run replayable, and the snake speeds up as it grows.
- • Controls: Keyboard (WASD/arrows) and touch support
- • Seeded RNG: Lets the server re-run a game to check it
- • Input Logging: Each move timestamped for replay
Blockchain: Base L2 NFTs
Holders get daily turns, checked against OpenSea. Gameplay is off-chain, so it costs no gas. Top leaderboard scores win prizes every two weeks.
- • Collection: 10,000 Sneks on Base L2
- • Verification: Real-time OpenSea API checks
Backend: Render + PostgreSQL
Node.js on Render with PostgreSQL for scores and turns. The server replays each game from its seed and input log before accepting the score. A cron job clears the leaderboard.
- • Hosting: Render (always-on Node.js)
- • Database: PostgreSQL for scores and turns
- • Anti-Cheat: Deterministic replay verification
AI Automation: Claude API + GitHub Actions
A GitHub Actions job posts one Snek from the 10k collection to X each day. Claude writes the caption from the NFT's metadata, in an Aesop Rock style.
- • AI Captions: Claude API writes tweet text
- • Style: Aesop Rock-inspired (lyrical, cryptic)
- • Automation: GitHub Actions + Twitter API