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.
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.
- 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 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