Synthetix Spartan NFT

Screenshot

Overview

Entry for Gitcoin Bounty: https://gitcoin.co/issue/snxgrants/open-defi-hackathon/7/100025688

See the live dApp in action here: https://synthetix-spartan.netlify.app

This is a very simple game with play as follows:

  • Each player is randomly generated a fighter with strength, stamina, and speed.
  • When a new player joins, an existing player is randomly chosen for a chance to have a stat boosted.
  • When the game ends, each player fights in a unique randomly generated battle against their own opponent.
  • Rounds continue until only one player is left.
  • If no players survive their match, the last player to join the game wins (hence the boost feature!)
  • When a player wins, their fighter is minted into an NFT for them to keep.
  • The NFT includes an SNX prize which can be claimed.

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.