Pythian Peso Snake - the classic snake game with a twist

Pythian Peso Snake

Team: @totti1317 · Submitted: March 15, 2026

Pythian Peso Snake is a browser based Snake game where players eat the Pythian Pesos to score points. Every food placement uses real Pyth Entropy, the full commit-reveal protocol via Fortuna - making each spawn position cryptographically verifiable. It’s a fun, demo of what provably fair randomness looks like in a game.

What It Does

Bringing in the nostalgia of the classic Nokia 1100 Snake game with a twist: every time the snake eats a Pythian Peso (a “PP”), the next food position is determined using the real Pyth Entropy commit-reveal protocol, not just Math.random(). The user contributes a secret, Pyth’s Fortuna service reveals its pre-committed value, and the two are combined via SHA-256 — exactly matching the on-chain contract logic. A live sidebar panel shows the sequence number, user seed, provider seed, and final hash for every draw.

Pyth Features Used

  • Entropy (randomness)

Links

Screenshots / Media

Tech Stack

  • Framework/Language: Vanilla HTML, CSS, JavaScript (single self-contained file)

  • Blockchain: Optimism (Pyth Entropy provider 0x52DeaA1c84233F7bb8C8A45baeDE41091c616506)

  • Deployment: Static file, runs entirely in the browser, no server required

Content Contributions

Licensing

This project is licensed under Apache 2.0

Eligibility Confirmation

  • I am 18+ years old

  • I am not located in an OFAC-sanctioned jurisdiction

  • I confirm this is an original work created during the hackathon period

  • I have read and agree to the Terms & Conditions