"My brain is stuck!"
"I want to make something fun"
"2025 is a snake year!"
Oh, the Nokia 3310 OG Snake game? Yep, that’s how we got here. We aim to solve the problem where many Web3 games are overly focused on blockchain incentives and have complex UIs. As a newcomer myself, it can be quite difficult for us who are just trying to explore around. Our focus is on making the experience simple, fun, and user-friendly at a glance.
Stake & Snake is a Web3 snake game that merges the nostalgia of the classic Snake with blockchain staking. Snake game, but at Web 3, with staking. Players can stake and compete, with first place taking all in public/private lobbies, while tournaments reward the top 10 ranked players on the podium, with higher ranks earning a bigger cut. A 5%–10% fee is taken from the prize pools to keep the platform running and cover gas fees for automated operations.
If you're looking for features and pages, here they are.
🚨 Disclaimer 🚨
The game is a prototype. If you spot any mathematical miscalculations... Just pretend it’s abstract art and move on.
Our game Stake & Snake leverages Scroll’s zkEVM to provide a low-cost, and scalable gaming experience. Scroll balances the trilemma by scaling Ethereum’s throughput and scalability while preserving its decentralization and security. This makes it very suitable for high demand applications like Web 3 Gaming.
- SnakeFactory
- Factory contract that deploys contracts to manage Lobby and Tournament Games (Verified).
- 0xE04aD003257688aF5fbe34f80D26D3e1463Bc41C
- LobbyGame
- An example of a LobbyGame contract (Unverified, Child Contract).
- 0x680BC51c1B35CbA280Ff61a655Db3612BCE45977
- TournamentGame
- An example of a Tournament contract (Unverified, Child Contract).
- 0xecEF5Df87D5CA93f2c99F955e0320EF65cf6dC84
Gaming is one of the Big 5 use cases of Vanar Chain. The fast transactions and fixed low fees aspects of Vanar make it ideal for a gaming platform where players can enjoy without worrying about high gas fees.
- SnakeFactory
- Factory contract that deploys contracts to manage Lobby and Tournament Games (Verified).
- 0x9a50e5c1B271CF445764a65a16234C484B335081
- LobbyGame
- An example of a LobbyGame contract (Unverified, Child Contract).
- 0xcefd63639860723e4218ae0b819aa989ea86a44e
- TournamentGame
- An example of a Tournament contract (Unverified, Child Contract).
- 0xa7c03ca17d4a5efa1b7dbd7050ccfffdca5af0fc
Our game is fully powered by The Graph, from lobby games and tournament matches to the leaderboard. We store data on-chain for player transparency and use The Graph's subgraph to fetch and organize it efficiently.
- Here is the repository for the subgraph indexing the Scroll Sepolia network.
- Here is the repository for the subgraph indexing the Vanguard network.
- TheGraph Endpoint: https://api.studio.thegraph.com/query/104999/snake-subgraph-scroll/version/latest
- For the frontend subgraph integration, we use Apollo Client to fetch data from the subgraph. Here is an example.
We decided to make it cross-chain, with a single subgraph querying each chain. Unfortunately, we couldn't provide the endpoint for the Vanguard subgraph as it is running on our local Graph Node. However, here are some screenshots.
cargo run -p graph-node --release -- \
--postgres-url postgresql://orman:password@localhost:5432/graph-node \
--ethereum-rpc mainnet:https://rpc-vanguard.vanarchain.com \
--ipfs 127.0.0.1:5001
- You can choose between a casual lobby or competitive tournaments.
- You can create your own lobbies or join games hosted by others!
- Select your preferred stake amount and duration.
- You can also create private lobbies and enjoy games with your friends without any interruptions.
- Time to compete with others! Get the best score within the time limit.
- You can play again and keep beating your high score until the timer runs out.
- The startGame, submitScore, and endGame operations are handled by the platform, but for demonstration purposes, we executed them manually.
- If you’re looking for a more competitive and higher-stakes experience, sign up for our weekly tournaments!
- Finally, make it to the podium and earn your prizes.
If only we had more time. The hackathon took place alongside our course assignments, but we’re still happy with what we achieved within the time limit.
- Airdrops
- For loyal users who play for a long time to reward them with collectibles such as website themes and custom snake designs as in NFTs.
- Cross-Chain Compatibility.
- Stake directly from their wallets using their existing coins makes gameplay easier compared to platforms that require a separate in-game token.
- Develop a zero-fee bridging solution for players to join lobbies and tournaments with different coins across multiple chains.
- More Competitiveness
- Instead of just individual play, we could implement a Slither.io concept.
- Multiple players compete in real-time on the same map.
- Yield Farming
- Yield farming protocols could provide an additional revenue stream during week-long tournaments.
- The platform can generate extra income.
We was a total newbie when it came to The Graph, and huge thanks to Soh Zhe Hong a.k.a HH for the week-long mentorship. It was brain stuck and overwhelming at first but after successfully writing relationships between data tables, it all started to make sense.
Huge shoutout to RH. Introducing us one of the best tool - the Scaffold-ETH and conducted workshop on it, which became the foundation for this entire project. Funny enough, I couldn’t even deploy properly using it during my last hackathon.
Also, not forgetting the Vanar Team for helping us with the Vanar deployment.
As someone still fairly new to the Web 3 space, we strives to learn more and improve.









