Giter Site home page Giter Site logo

eosio / eosio-card-game-repo Goto Github PK

View Code? Open in Web Editor NEW
162.0 29.0 98.0 78.59 MB

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.

Home Page: http://battles.eos.io

elemental-battles blockchain dapp game lesson eosio

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

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!

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?

Broken links

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

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?

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)

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.