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
-
Live Demo: https://ppsnake.netlify.app/
-
Source Code: [ GitHub - totti-pyth/pyth_snake · GitHub ]
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
-
Public Post (Reddit, Dev.to, or Hashnode): [ Pythian Peso Snake - DEV Community ]
-
Technical Contribution : [ GitHub - totti-pyth/pyth_snake · GitHub ]
-
X Platform Post: https://x.com/totti1317/status/2032969802927817120?s=20
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
