tictactoetuto's People
Forkers
dabanatictactoetuto's Issues
Game info displays the wrong balance
Au début les balances, ne s'updataient tout simplement pas quand tu chagait l'Address dans le menu défilant. Après avoir ajouter this.ShowBalances() dans les callsback du menu défilant les balances affichées sont celles qui correspondent à l'adresse sélectrionner présendamment. Exemple:
au début:
Player X address: 0xc06802472c07bf570CcBB38217d5C7a4b99937d7
Player X balance: 102.96498095999935 ETH
Player O address: 0x3b475ae0057e2F4BA1Fd24cF1e98d3e932C82c04
Player O balance: 96.9751453 ETH
Je change l'adresse du player O:
Player X address: 0xc06802472c07bf570CcBB38217d5C7a4b99937d7
Player X balance: 102.96498095999935 ETH
Player O address: 0xc89065e7Dbbaea74Bb3e63B398E259CA4cC685F2
Player O balance: 96.9751453 ETH <----- la balance n'a pas changée!
Je chage encore l'adresse du player O:
Player X address: 0xc06802472c07bf570CcBB38217d5C7a4b99937d7
Player X balance: 102.96498095999935 ETH
Player O address: 0x3b475ae0057e2F4BA1Fd24cF1e98d3e932C82c04
Player O balance: 100 ETH <----- la balance a changée mais c'est celle de l'adresse d'avant : 0xc8906...!
J'ai essayé d'utiliser un .then pour attendre que le call a this.setState() se termine avant de caller this.ShowBalance() mais ça sort un bug...
Prepare a nice bilingual READ.ME
Create the procedure for installing all that is needed for the tutorial
Create a Medium account for P2PMTL
Modify the smart contract to include 2 players
The contract must handle three states:
- no players,
- one player
- two players.
Make the post for the Blockchain + games event for P2PMTL on Steemit and Medium
Betting works one time but fails the second time
first try: When you press the betting button, 3 ETH are removed from your account. When the game ends, you receive 6 ETH back if X wins.
second try: When you press the betting button, 3 ETH are removed from your account. When the game ends, Metamasks issues a transaction with 0 gaz limit and the call to BettingResults fails.
Make the First Post for P2PMTL on Steemit and Medium
Create the procedures that we will show during the tutorial
Create a Steemit account for P2PMTL
The bet amount is not behaving properly
The second time you click on the Buy-In button, the bet amount is still zéro. You need to click a second time to make it 6 ETH...
Organize the Github repository
Modify the React application to include 2 players
- Display the adresses associated with O and X.
- Make sure we cannot play if we are the only player.
deploy game on ropsten
Create an organization Github account for P2PMTL
Warning: Cannot update during an existing state transition
The state shoudn't be updated in render()
1)render() calls this.SendWinner() who execute: this.setState({isGameStarted: false});
2)also SendWinner() calls this.ShowBalances() who execute multiple this.setState
.
in ShowBalances() this.setState
can be change by console.log()
Deploy the application so it can handle 2 players
Make a post on the last event at Noteman for P2PMTL on Steemit and Medium
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.