project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5

AnimeWars

Decentralized and transparent turn based multiplayer strategy game. secured by FHE.

AnimeWars

Created At

ETHGlobal Brussels

Winner of

Hyperlane - Most Creative use of Hyperlane

Project Description

The vision of this project is to showcase the world the possibilities of online trusted gaming environments where confidential data is involved using decentralised and user controlled encryption and decryption systems. The rules of the game is simple. There are 4 players and 4 roles: Lord, Rebels, Allies and Traitor. Each player gets a role assigned randomly and confidentially (Thanks to the random confidentiality provided by the fhEVM). The player who gets assigned as the Lord is revealed at the start of the game. Then the user gets to choose from a list of characters and abilities. Once everyone is ready, 8 cards are dealed and the game goes on turn by turn. The goal of the Lord and Allies is to find and kill the rebels. The role of the rebel is to kill the Lord and the role of the Traitor is to be the last man standing. The entire game runs on chain where each move is done publicly but all the private cards are encrypted and store securely in fhEVM. Users don't need to interact with an fhEVM blockchain and can play the game across multiple blockchains at the same time(Thanks to Hyperlane and it's super fast latency).

How it's Made

The frontend is built with Next.js and TailwindCSS. The gamemaking and multiplayer sessions are maintained with the help of Supabase. The EVM and fhEVM contracts are written in Solidity. Users can play this game across Arbitrum, Zircuit, Fhenix and Inco Network. The cross chain relayer is set via hyperlane to facilitate seamless cross chain interaction. Using the wagmi+viem wallet connecter, the frontend interacts with the fhEVM networks to encrypt/decrypt private data such as cards held, roles of the players and a shuffled deck. The UI is inspired by the NounsDAO and several gamified tokenisation systems are implemented using Apecoin and NounsDAO. Worldcoin is integrated to ensure human uniqueness.

background image mobile

Join the mailing list

Get the latest news and updates