SlitherMoney

2 snakes, 1 winner. Both players stake crypto. Be the best snake to win the full pot.

SlitherMoney

Created At

ETHGlobal Buenos Aires

Winner of

Flare Network

Flare Network - BONUS TRACK: external data source or cross chain application

Hardhat

Hardhat - Best projects built using Hardhat 3

Pyth Network

Pyth Network - Best use of Pyth Entropy

Project Description

Welcome to SlitherMoney! Imagine being able to win money for being good at slither.io

Two 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?

How it's Made

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 1
  • Player 2
  • Arbitration server

We 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.

background image mobile

Join the mailing list

Get the latest news and updates