Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson 8 #8

Open
wants to merge 169 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
82affe4
Lesson 0
rickykung Oct 9, 2018
1e306be
Lesson 1
rickykung Sep 4, 2018
af2b28f
Lesson 2
rickykung Sep 4, 2018
920ac91
Lesson 3
rickykung Sep 4, 2018
ca1972e
Lesson 4
rickykung Sep 4, 2018
2bd9f38
Lesson 5
rickykung Sep 10, 2018
603c8bd
Lesson 6
rickykung Sep 10, 2018
fe56545
Lesson 7
rickykung Sep 10, 2018
a4b118c
Lesson 8
rickykung Sep 4, 2018
77a69fe
Update lesson 0 to support eosio.cdt
Nov 20, 2018
937cb5b
Merge branch 'lesson-0' into lesson-1
Nov 20, 2018
a30c5a3
Update lesson 1 to support eosio.cdt
Nov 20, 2018
49ba5d8
Merge branch 'lesson-1' into lesson-2
Nov 20, 2018
2cc520b
Update lesson 2 to support eosio.cdt
Nov 20, 2018
5ec42ae
Merge branch 'lesson-2' into lesson-3
Nov 20, 2018
c989fb8
Merge branch 'lesson-3' into lesson-4
Nov 20, 2018
01d4987
Update lesson 4 to support eosio.cdt
Nov 20, 2018
594f4de
Merge branch 'lesson-4' into lesson-5
Nov 20, 2018
af145db
Update lesson 5 to support eosio.cdt
Nov 20, 2018
4954f36
Merge branch 'lesson-5' into lesson-6
Nov 20, 2018
e966c01
Update lesson 6 to support eosio.cdt
Nov 20, 2018
e72a2fb
Merge branch 'lesson-6' into lesson-7
Nov 20, 2018
f952549
Update lesson 7 to support eosio.cdt
Nov 20, 2018
eebe253
Merge branch 'lesson-7' into lesson-8
Nov 20, 2018
4b9f52e
Add gitignore
Nov 20, 2018
45b2624
Merge branch 'master' into staging-lesson-0
Nov 20, 2018
0ad0c62
Merge branch 'staging-lesson-0' into staging-lesson-1
Nov 20, 2018
2905bd5
Merge branch 'staging-lesson-1' into staging-lesson-2
Nov 20, 2018
b8303fc
Merge branch 'staging-lesson-2' into staging-lesson-3
Nov 20, 2018
f1c3552
Merge branch 'staging-lesson-3' into staging-lesson-4
Nov 20, 2018
c4d9fc9
Merge branch 'staging-lesson-4' into staging-lesson-5
Nov 20, 2018
3c9a3f4
Merge branch 'staging-lesson-5' into staging-lesson-6
Nov 20, 2018
0ae92d7
Merge branch 'staging-lesson-6' into staging-lesson-7
Nov 20, 2018
7932b06
Merge branch 'staging-lesson-7' into staging-lesson-8
Nov 20, 2018
b25189f
Build own docker image
Jan 17, 2019
6aed09c
Merge branch 'staging-lesson-1' into staging-lesson-2
Jan 17, 2019
025abd7
Update eosjs
Jan 17, 2019
bf23b3d
Merge branch 'staging-lesson-2' into staging-lesson-3
Jan 17, 2019
88fbc4e
Update to eosjs beta3
Jan 17, 2019
382f72d
Merge branch 'staging-lesson-3' into staging-lesson-4
Jan 17, 2019
8821c46
Merge branch 'staging-lesson-4' into staging-lesson-5
Jan 17, 2019
3530769
Merge branch 'staging-lesson-5' into staging-lesson-6
Jan 17, 2019
b995ff3
Merge branch 'staging-lesson-6' into staging-lesson-7
Jan 17, 2019
47bc764
Merge branch 'staging-lesson-7' into staging-lesson-8
Jan 17, 2019
3d64f4e
Update to eos 1.7.3 and eosio.cdt 1.6.1
May 23, 2019
1e4bc3e
Merge branch 'staging-lesson-1' into staging-lesson-2
May 23, 2019
3e55027
Update to eosjs v20
May 23, 2019
af502bc
Merge branch 'staging-lesson-2' into staging-lesson-3
May 23, 2019
b5b53bf
Merge branch 'staging-lesson-3' into staging-lesson-4
May 23, 2019
f8e6a97
Merge branch 'staging-lesson-4' into staging-lesson-5
May 23, 2019
6b2248d
Merge branch 'staging-lesson-5' into staging-lesson-6
May 23, 2019
d373253
Merge branch 'staging-lesson-6' into staging-lesson-7
May 23, 2019
f6ce10b
Merge branch 'staging-lesson-7' into staging-lesson-8
May 23, 2019
116d188
Updated to EOSIO v1.8.0
Jul 2, 2019
0f32534
Merge branch 'staging-lesson-1' into staging-lesson-2
Jul 2, 2019
b884014
Merge branch 'staging-lesson-2' into staging-lesson-3
Jul 2, 2019
43cacc9
Merge branch 'staging-lesson-3' into staging-lesson-4
Jul 2, 2019
827ed62
Merge branch 'staging-lesson-4' into staging-lesson-5
Jul 2, 2019
e2b1be6
Merge branch 'staging-lesson-5' into staging-lesson-6
Jul 2, 2019
82c63f7
Merge branch 'staging-lesson-6' into staging-lesson-7
Jul 2, 2019
c078f02
Merge branch 'staging-lesson-7' into staging-lesson-8
Jul 2, 2019
7925dd3
Updated to EOSIO v1.8.1
Jul 11, 2019
4775554
Merge branch 'staging-lesson-1' into staging-lesson-2
Jul 11, 2019
544966b
Merge branch 'staging-lesson-2' into staging-lesson-3
Jul 11, 2019
e6f7134
Merge branch 'staging-lesson-3' into staging-lesson-4
Jul 11, 2019
76c5ac5
Merge branch 'staging-lesson-4' into staging-lesson-5
Jul 11, 2019
8025695
Merge branch 'staging-lesson-5' into staging-lesson-6
Jul 11, 2019
c71dc20
Merge branch 'staging-lesson-6' into staging-lesson-7
Jul 11, 2019
568e949
Merge branch 'staging-lesson-7' into staging-lesson-8
Jul 11, 2019
469fe87
Updated all dependencies
Oct 31, 2019
8cd0c1c
- Updated all dependencies
Oct 31, 2019
d5c2337
Merge branch 'staging-lesson-2' into staging-lesson-3
Oct 31, 2019
a54995c
Updated package-lock.json
Nov 1, 2019
00d5af9
Merge branch 'staging-lesson-3' into staging-lesson-4
Nov 1, 2019
b9f0ec1
Merge branch 'staging-lesson-4' into staging-lesson-5
Nov 1, 2019
38ad4b4
Merge branch 'staging-lesson-5' into staging-lesson-6
Nov 1, 2019
f02c0a0
Merge branch 'staging-lesson-6' into staging-lesson-7
Nov 1, 2019
45e7dcb
Merge branch 'staging-lesson-7' into staging-lesson-8
Nov 1, 2019
830fcd1
Updated sample.cpp
Nov 7, 2019
12fd145
Merge branch 'staging-lesson-0' into staging-lesson-1
Nov 7, 2019
2104e69
Merge branch 'staging-lesson-1' into staging-lesson-2
Nov 7, 2019
2452ffe
Merge branch 'staging-lesson-2' into staging-lesson-3
Nov 7, 2019
9bc7bc6
Merge branch 'staging-lesson-3' into staging-lesson-4
Nov 7, 2019
9e12fc4
Merge branch 'staging-lesson-4' into staging-lesson-5
Nov 7, 2019
5c4ddae
Merge branch 'staging-lesson-5' into staging-lesson-6
Nov 7, 2019
904a39c
Merge branch 'staging-lesson-6' into staging-lesson-7
Nov 7, 2019
78a331b
Merge branch 'staging-lesson-7' into staging-lesson-8
Nov 7, 2019
d7cd9c1
- Updated .cpp files to use 'eosio' rather than 'eosiolib'
Nov 26, 2019
c0f7f01
Merge branch 'staging-lesson-1' into staging-lesson-2
Nov 26, 2019
329858f
Updated package-lock
Nov 26, 2019
258ca72
Merge branch 'staging-lesson-2' into staging-lesson-3
Nov 26, 2019
70ad79e
Merge branch 'staging-lesson-3' into staging-lesson-4
Nov 26, 2019
620e9a3
Changed .cpp import back to eosiolib
Nov 26, 2019
23afb8b
Merge branch 'staging-lesson-1' into staging-lesson-2
Nov 26, 2019
03cf8c9
Merge branch 'staging-lesson-2' into staging-lesson-3
Nov 26, 2019
9dea2b2
Merge branch 'staging-lesson-3' into staging-lesson-4
Nov 26, 2019
183dafb
Merge branch 'staging-lesson-4' into staging-lesson-5
Nov 26, 2019
43a3028
Merge branch 'staging-lesson-5' into staging-lesson-6
Nov 26, 2019
09af8bb
Merge branch 'staging-lesson-6' into staging-lesson-7
Nov 26, 2019
52ebd12
Merge branch 'staging-lesson-7' into staging-lesson-8
Nov 26, 2019
6a84c98
Update to cdt 1.6.3 and fix abi not found issue
Dec 4, 2019
21f7899
Merge branch 'staging-lesson-1' into staging-lesson-2
Dec 4, 2019
54427f3
Set abi once abi is generated in lesson 2
Dec 4, 2019
6b1b559
Merge branch 'staging-lesson-2' into staging-lesson-3
Dec 4, 2019
b4682a9
Merge branch 'staging-lesson-3' into staging-lesson-4
Dec 4, 2019
e3b3e81
Update eosio_assert and now() to support the latest eosio library
Dec 4, 2019
c524f08
Merge branch 'staging-lesson-4' into staging-lesson-5
Dec 4, 2019
2814643
Merge branch 'staging-lesson-5' into staging-lesson-6
Dec 4, 2019
344f603
Merge branch 'staging-lesson-6' into staging-lesson-7
Dec 4, 2019
25e61f0
Change eosio_assert to check
Dec 4, 2019
0ce4c69
Merge branch 'staging-lesson-7' into staging-lesson-8
Dec 4, 2019
ff27c86
- Updated eos to version 2.0.0
Jan 17, 2020
309c508
Merge branch 'staging-lesson-1' into staging-lesson-2
Jan 17, 2020
8a0c0dc
Merge branch 'staging-lesson-2' into staging-lesson-3
Jan 17, 2020
755eaf1
Merge branch 'staging-lesson-3' into staging-lesson-4
Jan 17, 2020
ea4683a
Merge branch 'staging-lesson-4' into staging-lesson-5
Jan 17, 2020
3e45b43
Merge branch 'staging-lesson-5' into staging-lesson-6
Jan 17, 2020
b3e76a2
Merge branch 'staging-lesson-6' into staging-lesson-7
Jan 17, 2020
10e75dd
Merge branch 'staging-lesson-7' into staging-lesson-8
Jan 17, 2020
5f94ea7
Updated deploy_contract script to set contract if an abi file is foun…
Feb 3, 2020
fcaa687
Merge branch 'staging-lesson-1' into staging-lesson-2
Feb 3, 2020
6a4b548
Merge branch 'staging-lesson-2' into staging-lesson-3
Feb 3, 2020
b8844c3
Merge branch 'staging-lesson-3' into staging-lesson-4
Feb 3, 2020
9d90d21
Merge branch 'staging-lesson-4' into staging-lesson-5
Feb 3, 2020
792e9d7
Merge branch 'staging-lesson-5' into staging-lesson-6
Feb 3, 2020
04ff4d5
Merge branch 'staging-lesson-6' into staging-lesson-7
Feb 3, 2020
a12223b
Merge branch 'staging-lesson-7' into staging-lesson-8
Feb 3, 2020
5d9e44c
Removed EOSIO_DISPATCH from cardgame.cpp
Feb 5, 2020
d1123b2
Merge branch 'staging-lesson-1' into staging-lesson-2
Feb 5, 2020
c4aeab6
Merge branch 'staging-lesson-2' into staging-lesson-3
Feb 5, 2020
ac30ae4
Merge branch 'staging-lesson-3' into staging-lesson-4
Feb 5, 2020
dd0aca2
Merge branch 'staging-lesson-4' into staging-lesson-5
Feb 5, 2020
8010fef
Merge branch 'staging-lesson-5' into staging-lesson-6
Feb 5, 2020
401e114
Merge branch 'staging-lesson-6' into staging-lesson-7
Feb 5, 2020
3fe4cad
Merge branch 'staging-lesson-7' into staging-lesson-8
Feb 5, 2020
6343641
- Moved 'contracts' folder from 'eosio_docker' to root
Mar 31, 2020
4082e6f
Merge branch 'staging-lesson-1' into staging-lesson-2
Mar 31, 2020
ba6e306
Merge branch 'staging-lesson-2' into staging-lesson-3
Mar 31, 2020
de3d084
Merge branch 'staging-lesson-3' into staging-lesson-4
Mar 31, 2020
52a6ee8
Merge branch 'staging-lesson-4' into staging-lesson-5
Mar 31, 2020
ddc8ba8
Merge branch 'staging-lesson-5' into staging-lesson-6
Mar 31, 2020
bcc6fb6
Merge branch 'staging-lesson-6' into staging-lesson-7
Mar 31, 2020
41364f2
Merge branch 'staging-lesson-7' into staging-lesson-8
Mar 31, 2020
5993812
- Updated eos to version 2.0.5
Apr 24, 2020
c9fd8a1
Merge branch 'staging-lesson-1' into staging-lesson-2
Apr 24, 2020
e0d0249
Merge branch 'staging-lesson-2' into staging-lesson-3
Apr 24, 2020
1096026
Merge branch 'staging-lesson-3' into staging-lesson-4
Apr 24, 2020
3f0028e
Merge branch 'staging-lesson-4' into staging-lesson-5
Apr 24, 2020
ec3ce15
Merge branch 'staging-lesson-5' into staging-lesson-6
Apr 24, 2020
8191818
Merge branch 'staging-lesson-6' into staging-lesson-7
Apr 24, 2020
e2ba983
Merge branch 'staging-lesson-7' into staging-lesson-8
Apr 24, 2020
30338b7
- Updated README
Apr 24, 2020
874f1f2
Merge branch 'staging-lesson-0' into staging-lesson-1
Apr 24, 2020
afaefa4
Merge branch 'staging-lesson-1' into staging-lesson-2
Apr 24, 2020
4aad4cd
Merge branch 'staging-lesson-2' into staging-lesson-3
Apr 24, 2020
b527ea6
Merge branch 'staging-lesson-3' into staging-lesson-4
Apr 24, 2020
dcbe256
Merge branch 'staging-lesson-4' into staging-lesson-5
Apr 24, 2020
9abb61f
Merge branch 'staging-lesson-5' into staging-lesson-6
Apr 24, 2020
e2ea311
Merge branch 'staging-lesson-6' into staging-lesson-7
Apr 24, 2020
798bd9b
Merge branch 'staging-lesson-7' into staging-lesson-8
Apr 24, 2020
90c2d8a
Updated license link in Contributing.md
Apr 27, 2020
45e90bf
Merge branch 'staging-lesson-0' into staging-lesson-1
Apr 27, 2020
37971f8
Merge branch 'staging-lesson-1' into staging-lesson-2
Apr 27, 2020
ab3396d
Merge branch 'staging-lesson-2' into staging-lesson-3
Apr 27, 2020
a8ab639
Merge branch 'staging-lesson-3' into staging-lesson-4
Apr 27, 2020
c2e80c3
Merge branch 'staging-lesson-4' into staging-lesson-5
Apr 27, 2020
f13ddc9
Merge branch 'staging-lesson-5' into staging-lesson-6
Apr 27, 2020
ab175d7
Merge branch 'staging-lesson-6' into staging-lesson-7
Apr 27, 2020
4fb77b1
Merge branch 'staging-lesson-7' into staging-lesson-8
Apr 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# dependencies
node_modules/

# production
frontend/build

#compile contract files
**/*.abi
**/*.wasm
**/*.wast

#blockchain data
**/data/*

# misc
.DS_Store

npm-debug.log*
yarn-debug.log*
yarn-error.log*
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v8.11.3
139 changes: 139 additions & 0 deletions Contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
# Contributing to developer documentation site

Interested in contributing? That's awesome! Here are some guidelines to get started quickly and easily:

- [Reporting An Issue](#reporting-an-issue)
- [Reporting A Game Issue](#reporting-a-game-issue)
- [New Feature Request](#new-feature-request)
- [Change Requests](#change-requests)
- [Working on Elemental Battles](#working-on-elemental-battles)
- [Branches](#branches)
- [Submitting Pull Requests](#submitting-pull-requests)
- [Conduct](#conduct)
- [Contributor License & Acknowledgments](#contributor-license--acknowledgments)
- [References](#references)

## Reporting An Issue

If you're about to raise an issue because you think you've found a problem with documentation, please read this first.

The GitHub issue tracker is the preferred channel for [Reporting A Game Issue](#reporting-a-game-issue), [New Feature Requests](#new-feature-request), and [Submitting Pull Requests](#submitting-pull-requests), but please respect the following restrictions:

* Please **search for existing issues**. Help us keep duplicate issues to a minimum by checking to see if someone has already reported your problem or requested your idea.

* Please **be civil**. Keep the discussion on topic and respect the opinions of others. See also our [Contributor Code of Conduct](#conduct).

### Reporting a Game Issue

A game issue is a _demonstrable problem_ that is present in the card-game repository. Good reports are extremely helpful - thank you!

Guidelines for documentation issue reports:

1. **Use the GitHub issue search** — check if the issue has already been reported.

2. **Check if the issue has been fixed** — look for [closed issues in the
current milestone](https://github.com/EOSIO/eosio-card-game-repo/issues?q=is:issue+is:closed) or try to find it using the latest branch for the relevant lesson.

A good issue report shouldn't leave others needing to chase you up for more information. Be sure to include the details of your environment and relevant tests that demonstrate the problem.

[Report an issue](https://github.com/EOSIO/eosio-card-game-repo/issues/new?title=%5Bdocs%5D%20Suggestion%20/%20Change%20Request)

### New Feature Request

New feature requests are welcome. Before you submit one be sure to have:

1. **Use the GitHub search** and check the new document hasn't already been requested.
2. Take a moment to think about whether your idea fits with the scope and aims of the project.
3. Remember, it's up to *you* to make a strong case to convince the project's leaders of the merits of this documentation request.

### Change Requests

If you have an idea for improvement - please be sure to:

1. **Use the GitHub search** and check someone else didn't get there first
2. Take a moment to think about the best way to make a case for, and explain what you're thinking. Are you sure this shouldn't really be
[New Feature Request](#new-feature-request)? Is it really one idea or is it many? What's the context? Why is what you are suggesting better than what's already there?

## Working on Elemental Battles

Contributions are welcome and encouraged! If you are looking for a good place to start, check out the [good first issue](https://github.com/EOSIO/eosio-card-game-repo/labels/good%20first%20issue) label in GitHub issues.

Also, please follow these guidelines when submitting your proposed documentation changes:

### Branches

To get it out of the way:

- **Lesson Branches** contain the contents of each lesson. Changes are usually made in lesson-0 or lesson-1 and then merged into later lesson branches to ensure consistency.
- **[master](https://github.com/EOSIO/welcome/tree/master)** contains the main README file only.Do **NOT** use this branch to add any code.

### Submitting Pull Requests

Pull requests are awesome. If you're looking to raise a PR for something which doesn't have an open issue, please think carefully about [raising an issue](#reporting-an-issue) which your PR can close. This makes it more likely that there will be enough information available for your PR to be properly tested and merged.

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

## Contributor License & Acknowledgments

Whenever you make a contribution to this project, you license your contribution under the terms of the [MIT LICENSE](https://github.com/EOSIO/eos/blob/master/LICENSE), and you represent and warrant that you have the right to license your contribution under those terms. Whenever you make a contribution to this project, you also certify in the terms of the Developer’s Certificate of Origin set out below:

```
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or

(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or

(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.

(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
```

## References

* Overall CONTRIB adapted from https://github.com/mathjax/MathJax/blob/master/CONTRIBUTING.md
* Conduct section adapted from the Contributor Covenant, version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
1 change: 1 addition & 0 deletions CopyrightNotice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Copyright (c) 2017-2020 block.one and its contributors. All rights reserved.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ubuntu:18.04

RUN apt-get update && apt-get install -y wget sudo curl
RUN wget https://github.com/EOSIO/eosio.cdt/releases/download/v1.6.3/eosio.cdt_1.6.3-1-ubuntu-18.04_amd64.deb
RUN apt-get update && sudo apt install -y ./eosio.cdt_1.6.3-1-ubuntu-18.04_amd64.deb
RUN wget https://github.com/EOSIO/eos/releases/download/v2.0.5/eosio_2.0.5-1-ubuntu-18.04_amd64.deb
RUN apt-get update && sudo apt install -y ./eosio_2.0.5-1-ubuntu-18.04_amd64.deb
27 changes: 27 additions & 0 deletions ImportantNotice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Important Notice

We (block.one and its affiliates) make available EOSIO and other software, updates, patches and documentation (collectively, Software) on a voluntary basis as a member of the EOSIO community. A condition of you accessing any Software, websites, articles, media, publications, documents or other material (collectively, Material) is your acceptance of the terms of this important notice.

## Software
We are not responsible for ensuring the overall performance of Software or any related applications. Any test results or performance figures are indicative and will not reflect performance under all conditions. Software may contain components that are open sourced and subject to their own licenses; you are responsible for ensuring your compliance with those licenses.

We make no representation, warranty, guarantee or undertaking in respect of Software, whether expressed or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall we be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the Software or the use or other dealings in the Software.

Wallets and related components are complex software that require the highest levels of security. If incorrectly built or used, they may compromise users’ private keys and digital assets. Wallet applications and related components should undergo thorough security evaluations before being used. Only experienced developers should work with such Software.

Material is not made available to any person or entity that is the subject of sanctions administered or enforced by any country or government or otherwise designated on any list of prohibited or restricted parties (including but not limited to the lists maintained by the United Nations Security Council, the U.S. Government, the European Union or its Member States, or other applicable government authority) or organized or resident in a country or territory that is the subject of country-wide or territory-wide sanctions. You represent and warrant that neither you nor any party having a direct or indirect beneficial interest in you or on whose behalf you are acting as agent or nominee is such a person or entity and you will comply with all applicable import, re-import, sanctions, anti-boycott, export, and re-export control laws and regulations. If this is not accurate or you do not agree, then you must immediately cease accessing our Material and delete all copies of Software.

Any person using or offering Software in connection with providing software, goods or services to third parties shall advise such third parties of this important notice, including all limitations, restrictions and exclusions of liability.

## Trademarks
Block.one, EOSIO, EOS, the heptahedron and associated logos and related marks are our trademarks. Other trademarks referenced in Material are the property of their respective owners.

## Third parties
Any reference in Material to any third party or third-party product, resource or service is not an endorsement or recommendation by Block.one. We are not responsible for, and disclaim any and all responsibility and liability for, your use of or reliance on any of these resources. Third-party resources may be updated, changed or terminated at any time, so information in Material may be out of date or inaccurate.

## Forward-looking statements
Please note that in making statements expressing Block.one’s vision, we do not guarantee anything, and all aspects of our vision are subject to change at any time and in all respects at Block.one’s sole discretion, with or without notice. We call these “forward-looking statements”, which includes statements on our website and in other Material, other than statements of historical facts, such as statements regarding EOSIO’s development, expected performance, and future features, or our business strategy, plans, prospects, developments and objectives. These statements are only predictions and reflect Block.one’s current beliefs and expectations with respect to future events; they are based on assumptions and are subject to risk, uncertainties and change at any time.

We operate in a rapidly changing environment and new risks emerge from time to time. Given these risks and uncertainties, you are cautioned not to rely on these forward-looking statements. Actual results, performance or events may differ materially from what is predicted in the forward-looking statements. Some of the factors that could cause actual results, performance or events to differ materially from the forward-looking statements include, without limitation: technical feasibility and barriers; market trends and volatility; continued availability of capital, financing and personnel; product acceptance; the commercial success of any new products or technologies; competition; government regulation and laws; and general economic, market or business conditions.

All statements are valid only as of the date of first posting and Block.one is under no obligation to, and expressly disclaims any obligation to, update or alter any statements, whether as a result of new information, subsequent events or otherwise. Nothing in any Material constitutes technological, financial, investment, legal or other advice, either in general or with regard to any particular situation or implementation. Please consult with experts in appropriate areas before implementing or utilizing anything contained in Material.
78 changes: 73 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,50 @@
# Elemental Battles Tutorial Lessons
# Elemental Battles Tutorial Lesson 8

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.
- *Account*: `player1`
- *Private Key*: `5KFyaxQW8L6uXFB6wSgC44EsAbzC7ideyhhQ68tiYfdKQp69xKo`
The account information is available in [eosio_docker/scripts/accounts.json](eosio_docker/scripts/accounts.json). The key pair in this file is generated **FOR TESTING ONLY** so please **DO NOT** use them for any other purposes.

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

## About this repository
Make sure Docker and Node.js are installed

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.
* Install Docker: https://docs.docker.com/docker-for-mac/install/
* Install Node.js: https://nodejs.org/en/

The DApp and eosio will occupy the ports 3000, 8888 and 9876. Make sure nothing else is already running on these ports.

Clone the repository:
```sh
git clone https://github.com/EOSIO/eosio-card-game-repo.git
```

The following guide assumes you are using macOS.

## Quick start - Run the DApp

In this section we provide a single command script to run all the commands needed to start both the blockchain and UI. For more detail on each component see the `Detailed guide` below.

**To start**
```sh
./quick_start.sh
```

The above command will execute the following in sequence:

1. `first_time_setup.sh`
2. `start_eosio_docker.sh`
3. `start_frontend.sh`

- Login with the following credentials:

**To stop**, press `ctrl+c` on your keyboard, and execute:
```sh
docker stop eosio_cardgame_container
```

## Detailed guide

Please refer to [eosio-project-boilerplate-simple - Detailed guide](https://github.com/EOSIO/eosio-project-boilerplate-simple/blob/master/README.md#detailed-guide) for more information. This repository is using the similar structure as that.

## Lesson List

Expand All @@ -27,3 +65,33 @@ This repository contains the source code used in each of the tutorial lesson. Ea
[Lesson 7: Building the Game Flow](https://github.com/EOSIO/eosio-card-game-repo/tree/lesson-7)

[Lesson 8: Wrapping Up The Game](https://github.com/EOSIO/eosio-card-game-repo/tree/lesson-8)

## Contributing

See [Contributing](./Contributing.md)

## 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](./CopyrightNotice.md) for copyright terms.

All repositories and other materials are provided subject to the terms of this [IMPORTANT](./ImportantNotice.md) 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.
Loading