Coder Social home page Coder Social logo

grayhatdevelopers / fastmon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alimustafa253/fastmon

3.0 0.0 1.0 1.46 MB

Trade Pokémon cards on the Blockchain.

JavaScript 28.49% TypeScript 16.99% CSS 1.11% SCSS 33.41% Sass 5.94% Solidity 14.07%
blockchain dapps pokemon solidity trading-card-game web3 web3-game

fastmon's Introduction

FastMon

Card Game with backend code written entirely in a blockchain using solidity.

Technical Details:

Our frontend is built on Nextjs, a React Framework. It utilizes state management using Redux-Thunk, and uses a solid Provider pattern to utilize Web3 in the entire app. We use Material UI for good design.

Pre-requisite:

Ensure you have the following downloaded

  • NPM
  • Yarn
  • Next
  • react
npm install next react react-dom

How to Install:

  • First install dependencies. Run the following in the frontend folder
npm install
  • (optional) Copy the latest Contract JSON files from truffle/build into frontend/contracts
  • (optional) Run yarn compile-contract-types in the frontend folder
  • Change the contract address in frontend/hooks/useProjectGameContract.ts to the contract address of Project Game (which you might have deployed with truffle migrate in the truffle folder)
  • Run the server. Run the following in the frontend folder
npx next dev

Game playing:

After the contract has been deployed to Ganache, any user can open the app and “Connect their Metamask account”.

image

A player can Generate a New Card to advance the turn. This will be added to their cards - but it costs them tokens.

image

You can select a random card upon selecting the buy option using the interface below.

image

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.