SlitherMoney
2 snakes, 1 winner. Both players stake crypto. Be the best snake to win the full pot.
Problem Statement
Welcome to SlitherMoney! Imagine being able to win money for being good at slither.ioTwo players stake some amount of ETH. Then they are given 30 seconds to either eat 5 apples or cut off the other player. The winner takes the entire pot.May the best snake win!I think I am the best snake, do you?
Solution
The secret sauce is hashing the secure rng with the log of all player inputs and optimistically verifying this hash with the other player. If they line up, the game state is the same and the winner is agreed upon. In case of a dispute, we have a 3rd party server that can agree with either player.This is a min 2/3 consensus between two of the following:Player 1Player 2Arbitration serverWe use: React + TypeScript + Vite - for the frontend Pyth - for random number generation to ensure trustless spawning of apples Flare - for random number generation and smart contract deployment Hardhat 3 - for the process of writing, testing, and deployment the smart contract. Hardhat 3 - for the process of writing, testing, and deployment the smart contract.
Hackathon
ETHGlobal Buenos Aires
2025
Prizes
- 🏆
BONUS TRACK: external data source or cross chain application
Flare Network
- 🏆
Best projects built using Hardhat 3
Hardhat
- 🏆
Best use of Pyth Entropy
Pyth Network
Contributors
- xavierdmello
56 contributions