Giter Club home page Giter Club logo

aytaditya / avax_gods Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 34.84 MB

Avax-Gods, where blockchain technology meets the thrill of NFT card gaming! Avax-Gods is an innovative project that allows users to immerse themselves in a world of strategy and competition. By connecting your Core or MetaMask wallet, you can create battles or join existing ones with ease. Engage in intense battles where every move count.

Home Page: https://avaxgods-nft.vercel.app/

License: MIT License

Solidity 21.62% TypeScript 7.45% JavaScript 63.80% HTML 0.43% CSS 6.55% Dockerfile 0.14%
avalanche-c-chain d-app docker frontend hardhat open-zeppelin react smart-contracts solidity typescript

avax_gods's Introduction

Avax Gods

JavaScript TypeScript Solidity React Vite Web3.js TailwindCSS Docker

Welcome to Avax-Gods, where blockchain technology meets the thrill of decentralized gaming! Avax-Gods is an innovative project that allows users to immerse themselves in a world of strategy and competition. By connecting your Core or MetaMask wallet, you can create battles or join existing ones with ease. Engage in intense battles where every move counts.

Home Image

Table of Contents

Introduction

Avax-Gods is a strategic NFT card game built on blockchain technology. Players can connect their Core or MetaMask wallets to engage in exciting battles, utilizing their NFT cards to attack, defend, and outsmart their opponents.

BattleGround Image

Features

  • Blockchain Integration: Secure and transparent transactions through Core and MetaMask wallets.
  • NFT Cards: Unique NFT cards that you can use in battles.
  • Custom Battleground: Select your battleground from four unique types available.
  • Interactive Battle animations and sounds: Engaging battle animations and sounds with interactive toasts add excitement and vibrancy to the game.
  • Strategy & Competition: Plan your moves carefully to defeat your opponents.
  • Community Engagement: Join a vibrant community of gamers and NFT enthusiasts.
  • Exiting Battle: You can also exit the battle.

Battleground Options

Getting Started

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have a Core or MetaMask wallet set up.
  • You have some AVAX tokens in your wallet for transaction fees.

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/avax-gods.git
  2. Navigate to the project directory:

    cd Avax-Gods
  3. Install the dependencies:

    npm install

Usage

  1. Start the development server:

    npm run dev
  2. Open your browser and go to http://localhost:5173 to see the application in action.

Gameplay

Creating a Battle

  1. Connect your Core or MetaMask wallet.
  2. Register your account if already not registered.
  3. Navigate to the "Create Battle" section.
  4. Click "Create Battle" to initiate the game.
  5. You can also join an existing battle

Player Waiting Area

Joining a Battle

  1. Connect your Core or MetaMask wallet.
  2. Browse the list of available battles.
  3. Select a battle to join.
  4. Confirm your participation.

Joining a Battle

Battle Mechanics

  • Random Card Allocation: Each player is given a card with random attack and defense values.
  • Decision Making: Based on the card values, players can choose to either attack or defend.
  • Player Health: Each player has a health of 25 points.
  • Hidden Opponent Values: You cannot see your opponent's attack and defense values. Strategize your moves based on your card's values and anticipate your opponent's actions.
  • Balanced Strategy: Focus on both attack and defense to optimize gameplay. Defending successfully refills your Mana by 3 points, enabling more attacks or defenses in subsequent turns.

Moves Transaction

Battle

Battle

Game Rules

  1. Card with the same defense and attack points will cancel each other out: When two cards with identical attack and defense points clash, they both are nullified.
  2. Attack points from the attacking card will deduct the opposing player’s health points: The attack value directly reduces the opponent's health.
  3. If P1 does not defend, their health will be deducted by P2’s attack: An undefended attack directly reduces the defender's health.
  4. If P1 defends, P2’s attack is equal to P2’s attack - P1’s defense: Defending reduces the impact of the attack by the defender's defense value.
  5. If a player defends, they refill 3 Mana: Successful defense replenishes the defender's Mana by 3 points.
  6. If a player attacks, they spend 3 Mana: Each attack costs the attacker 3 Mana points.

Rules

Tech Stack

  • Docker: Containerization for seamless deployment.
  • JavaScript/TypeScript: Main programming languages used in the project.
  • Hardhat: Development environment for Ethereum-compatible smart contracts.
  • Solidity: Programming language for writing smart contracts.
  • OpenZeppelin: Library for secure smart contract development.
  • React: JavaScript library for building user interfaces.
  • Tailwind CSS: Tailwind CSS for styling of the application.

Contributing

We welcome contributions to Avax-Gods! To contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Make your changes and commit them (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/your-feature).
  5. Open a Pull Request.

Notes

  • The Solidity code for Avax-Gods is written using Solidity version ^0.8.19. Ensure your development environment is compatible with this version for optimal performance and compatibility.
  • The frontend of Avax-Gods is built using React and Vite, providing a fast and modern development experience.
  • A modal will open if you are not connected to the Fuji C-Chain network, prompting you to switch networks for proper functionality
  • Docker is integrated into the frontend for streamlined development and deployment.

Modal

Modal

Modal

avax_gods's People

Contributors

aytaditya avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

okaditi

avax_gods's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.