Skip to content

Abdullah30243/Web3-NFT-Card-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Avax Gods - Online Multiplayer Web3 NFT Card Game

Gameplay

Launch your development career with project-based coaching on JS Mastery Pro.

Instructions on setting up the Web3 part of the project

  1. cd web3
  2. npx hardhat -> y → typescript → enter → enter
  3. npm install @openzeppelin/contracts dotenv @nomiclabs/hardhat-ethers + Hardhat packages npm install --save-dev "hardhat@^2.12.0" "@nomicfoundation/hardhat-toolbox@^2.0.0"
  4. Install Core, a Metamask smart wallet alternative built for Avalanche dApps
  5. Turn on the testnet mode by: opening up the Core extension -> click the hamburger menu on the top left -> go to advanced -> turn on the testnet mode
  6. Fund your wallet from the Avax Faucet
  7. Create a .env file and specify a PRIVATE_KEY variable.
  8. To get to the private key, do the following steps:
  9. Open up the Core extension -> click the hamburger menu on the top left -> go to security and privacy -> click show recovery phase -> enter your password -> copy the phrase -> go to wallet.avax.network -> click access wallet -> choose mnemonic key phrase -> paste what the words we’ve copied from Core -> on the sidebar click manage keys -> view c-chain private key -> copy -> paste it in the .env file
  10. Copy the hardhat.config.ts file from the GitHub gist down in the description
  11. Copy the deploy.ts script from the GitHub gist down in the description
  12. Copy the AvaxGods.sol smart contract code from the GitHub gist down in the description
  13. Compile the contract by running the npx hardhat compile command
  14. 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

AvaxGods: Web3 Battle-Style Online Multiplayer Card Game

Overview

AvaxGods is a revolutionary Web3 battle-style online multiplayer card game built on the Avalanche platform. This game combines interactive gameplay, smart wallet pairing, and real-time battles, showcasing the potential of Web3 technology.

Features

  • Interactive gameplay with real-time battles
  • Smart wallet pairing for secure and seamless transactions
  • Built on the Avalanche platform for fast and low-cost transactions
  • Decentralized application (dApp) for a community-driven experience

Technical Requirements

  • React.js for frontend development
  • Avalanche platform for blockchain interactions
  • Solidity for smart contract development
  • Web3.js for blockchain integration

Getting Started

  1. Clone the repository and install dependencies with npm install
  2. Set up your development environment with Avalanche and MetaMask
  3. Follow the tutorial instructions to build and deploy your own AvaxGods game

Resources

  • Avalanche Documentation: (link unavailable)
  • JS Mastery Pro: (link unavailable)
  • GitHub Code: (link unavailable)
  • Starter Code: (link unavailable)
  • GitHub Gist Code Snippets: (link unavailable)

License

This project is licensed under the MIT License. See LICENSE for details.

Acknowledgments

Special thanks to Avalanche and JS Mastery for their support and collaboration on this project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published