Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pyth Examples Contribution
Type of Contribution
Project Information
Project/Example Name: SlitherMoney – Trustless Multiplayer Slither with Real Stakes
Pyth Product Used:
Blockchain/Platform:
Description
What does this contribution do?
SlitherMoney is slither.io with money.
Players stake tokens and compete in a real-time multiplayer game where outcomes are verified on-chain. The example demonstrates how to build trustless, provably fair game mechanics using Pyth Entropy.
How does it integrate with Pyth?
SlitherMoney uses Pyth’s Entropy SDK to generate trustless, verifiable randomness for spawning apples. Each round:
Randomness cannot be predicted or influenced by players or the developer, ensuring fair apple placement and preventing RNG-based exploits.
What problem does it solve or demonstrate?
Centralized crypto games often hide RNG logic, enabling manipulation or rigging.
SlitherMoney demonstrates:
Directory Structure (for new examples)
slithermoney/
├── contracts/ # Smart contracts
├── frontend/ # Browser client + wallet integration
├── README.md # Documentation
└── ...
Testing & Verification
How to Test This Contribution
Play live on Base Sepolia using testnet USDC.
Live Game: https://slithermoney.xavierdmello.com
Network: Base Sepolia
Contract Address:
0x82393d3dd11c31c252e120aa566bc59ac98cbd6b
Blockscout:
https://base-sepolia.blockscout.com/address/0x82393d3dd11c31c252e120aa566bc59ac98cbd6b
Demo URL:
https://ethglobal.com/showcase/undefined-85pci
Checklist
Code Quality
Code follows existing patterns in the repository
Proper error handling implemented
No hardcoded values (uses environment variables)
Testing
Tested locally and works as expected
No breaking changes introduced
Additional Context
Related Issues
Fixes # (none)
Screenshots/Demo
See demo link above.
Notes for Reviewers
This project showcases a fully trustless game loop powered by Pyth Entropy.
It is intended as a clear, minimal example of integrating verifiable randomness into real-time gameplay.
Thank you for contributing to Pyth Examples!