πΉ Register as a player with your crypto wallet πΈ
πΉ Create and join live battles π
πΉ Choose your battleground βοΈ
πΉ Battle other players in real-time βοΈ
cd web3
npx hardhat
-> y β typescript β enter β enternpm install @openzeppelin/contracts dotenv @nomiclabs/hardhat-ethers
+ Hardhat packagesnpm install --save-dev "hardhat@^2.12.0" "@nomicfoundation/hardhat-toolbox@^2.0.0"
- Install MetaMask (see below)
- Create a
.env
file and specify a PRIVATE_KEY variable. - Copy the
hardhat.config.ts
file from this repository - Copy the
deploy.ts
script from this repository - Copy the
AvaxGods.sol
smart contract code from this repository - Compile the contract by running the
npx hardhat compile
command - Deploy the smart contract on the Fuji test network by running the
npx hardhat run scripts/deploy.ts --network fuji
command. Move the/artifacts/contracts/AVAXGods.json
file to the/contract
folder on the frontend. Copy the address of the deployed contract from the terminal and paste it into the/contract/index.js
file of the frontend application.
βοΈPLEASE USE FULL SCREEN ON YOUR BROWSER FOR THE BEST DISPLAYβοΈ
β Each player starts with 10 Mana β©
-Your Mana and Health are located at the bottom of the screen
-Mana are the currency spent or gained when making moves within the game
-Defending never costs Mana, you will gain 3 Mana
-Attacking costs 3 Mana. Be careful! If your Mana is too low you won't be able to attack!
-Mana is separate from the health points
β Each player also starts with 25 health-points π©
-When you are attacked, your health points are deducted by the attack value on the opposing player's card
-If you defend an attack, your defense value is subtracted from the opposing players attack value
β Cards are randomly generated every turn π
-Attack & defense values on the cards are randomly generated
-Cards with the same defense and attack point will cancel each other out