Code Monkey home page Code Monkey logo

eosio-card-game-repo's Introduction

Elemental Battles Tutorial Lessons

The Elemental Battles Tutorial is divided into easy to follow lessons that take you through the process of creating your own fully-functional blockchain-based dApp.

Each lesson will introduce new concepts and showcase how to include them in the existing code. Additionally, we will display explanations and source code side-by-side to make following the tutorial easy.

About this repository

This repository contains the source code used in each of the tutorial lesson. Each lesson's code are stored in a branch. You can find all the lesson branches from the list below.

Changelog

  • v1.1.12
    • Updated eos to v2.0.5
    • Updated README, added Contributing, CopyrightNotice and ImportantNotice files
  • v1.1.11
    • Moved 'contracts' folder to root
  • v1.1.10
    • Removed EOSIO_DISPATCH from smart contracts
  • v1.1.9
    • Updated deploy_contract script to work with new abi behaviour in eosio cdt 1.6.3
  • v1.1.8
    • eos 2.0.0, eosjs 20.0.3, react 16.12.0, react-dom 16.12.0, react-redux 7.1.3, react scripts 3.3.0, redux 4.0.5
  • v1.1.7
    • eosio cdt 1.6.3 and change deprecated eosiolib header
  • v1.1.6
    • eos 1.8.6
  • v1.1.5
    • Update sample.cpp to make it deployable and compatible with new eos / cdt releases
  • v1.1.4
    • react 16.11.0, react-dom 16.11.0, react-modal 3.11.1, react-redux 7.1.1, react-scripts 3.2.0, redux 4.0.4, npm-run-all 4.1.5
  • v1.1.3
    • eos 1.8.1
  • v1.1.2
    • eos 1.8.0
  • v1.1.1
    • eos 1.7.3, eosio.cdt 1.6.1, eosjs 20.0.0
  • v1.1.0
    • Introduce eosio.cdt, use eosio-cpp instead of eosiocpp for the compiler
    • Use own docker image which is built using the binary instead of downloading from docker hub as the eosio/eos-dev in docker hub is deprecated
    • eos 1.6.0, eosio.cdt 1.5.0, eosjs 20.0.0-beta3

Lesson List

Lesson 0: Before You Start

Lesson 1: Smart Contract and Frontend Setup

Lesson 2: Storing State and Login

Lesson 3: Reading State from the Blockchain

Lesson 4: Elemental Battles Core

Lesson 5: Elemental Battles AI

Lesson 6: Playing a Round and Elemental Compatibility

Lesson 7: Building the Game Flow

Lesson 8: Wrapping Up The Game

Contributing

See Contributing

Conduct

While contributing, please be respectful and constructive, so that participation in our project is a positive experience for everyone.

Examples of behavior that contributes to creating a positive environment include:

• Using welcoming and inclusive language • Being respectful of differing viewpoints and experiences • Gracefully accepting constructive criticism • Focusing on what is best for the community • Showing empathy towards other community members

Examples of unacceptable behavior include:

• The use of sexualized language or imagery and unwelcome sexual attention or advances • Trolling, insulting/derogatory comments, and personal or political attacks • Public or private harassment • Publishing others’ private information, such as a physical or electronic address, without explicit permission • Other conduct which could reasonably be considered inappropriate in a professional setting

Important

See Copyright Notice for copyright terms.

All repositories and other materials are provided subject to the terms of this IMPORTANT notice and you must familiarize yourself with its terms. The notice contains important information, limitations and restrictions relating to our software, publications, trademarks, third-party resources, and forward-looking statements. By accessing any of our repositories and other materials, you accept and agree to the terms of the notice.

eosio-card-game-repo's People

Contributors

rickykung avatar sytong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eosio-card-game-repo's Issues

what is the Licence of eosio-card-game-repo

I want to make a lessons for gxchain, the one of the forks from bitshares.
The new lessons is make with Vue + gxsjs + gscatter, and the game role is rock-paper-scissors.
What is the licence eosio-card-game-repo?Can i use UI file, Course catalog and some of smart contract?

Broken links

Almost all of the outbound links contained in the tutorial are broken

frontend error

eosio-card-game-repo-1.1.3-lesson-8
win10
npm:6.4.1
chrome 76.0.3809.87.

when I choose a card, error occurs.
it says

eosjs-serialize.js:571 Uncaught (in promise) Error: missing playcard.player_card_index (type=uint8)
at Object.serializeStruct [as serialize] (eosjs-serialize.js:571)
at serializeActionData (eosjs-serialize.js:1041)
at Object.serializeAction (eosjs-serialize.js:1051)
at Api. (eosjs-api.js:278)
at step (eosjs-api.js:47)
at Object.next (eosjs-api.js:28)
at fulfilled (eosjs-api.js:19)

Waiting eosio blockchain to be started...

When I run ./quickstart.sh, the chain never starts. I get:

[quick_start.sh] Starting eosio docker
=== run docker container from the eosio-cardgame:eos2.0.5-cdt1.6.3 image ===
06d3234e4420db0d5983aad05845a539112de5f4b02312015c2027bc91749f08
Waiting eosio blockchain to be started...
Waiting eosio blockchain to be started...
Waiting eosio blockchain to be started...

What do I have to fix in the docker container for this to start or am i missing a prerequisite?

Two issues noticed with the game's AI

  1. Due to the nature of the calculate attack points function, the void card will always have the attack points 0, and will not get chosen by the AI until it is the last card left. The simple fix is just to add the line in that function: if (card1.type == VOID) result = card2.attack_points;

  2. Another issue I noticed is that the player's selected card is played and set to the empty card before the AI performs its calculations. This will result in the AI making its card selection based off only the three cards that the player did not select.

Frontend initialize instructions incorrect?

In the tutorial /lesson1/chapter3, it informs the users to start the react front end with the command npm init react-app my-app but I think it was meant to be npx create-react-app my-app? npm init react-app simply creates a package.json. If this is an issue I can fix!

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.