antododo / tictactoeTuto

2 stars 1 forks source link

Trying to tackle issue #19 #21

Closed dabana closed 6 years ago

dabana commented 6 years ago

1) Writes and retrieves the board state as a string to the blockchain (first step toward #19) 2) Fixes issue #20 3) Works on Ropsten but with only one address. But there is still a minor problem with balances not updating (need to refresh manually) 4) Updates xIsNext boolean based on the board state instead of user input. 5) Buy-in resets history 6) Handles the case of a draw

Need to force the sync on two tabs simultaneously but can't figure out how. Tried using events, but could not make them work as expected. Maybe try web3.eth.subscribe method. Need help on that...

dabana commented 6 years ago

We will keep it simple for the tutorial.