This two-part series is a brief introduction to the concepts of Ethereum and State Channels by building a Tic-Tac-Toe application. Read Part 1 here.
You have solved all the conventional issues of playing a bet match of Tic-Tac-Toe with the use of Smart Contracts on the Ethereum network. Now, you are facing foundational problems of a Blockchain itself which are speed and cost of transactions.
A Blockchain is fundamentally a set of blocks and each block is made up of transactions. Only transactions included in blocks are considered to be valid. A block can consist of a predefined number of…
This series is a brief introduction to the concepts of Ethereum and State Channels by building a tic-tac-toe application.
Stuck in the lock-down, you have been whiling away time playing the game of tic-tac-toe with your friend for months now and it has become monotonous. To spice things up, you both have decided to bet some money and winner takes it all. But, with money comes problems.
You cannot trust your friend to be able to afford the bet.
You cannot trust your friend to make a valid move.
You cannot trust your friend to complete the game.
How many times have you set out to make an application vowing to keep the code clean and sensible till the very end and miserably failed midway? Do you feel the bad code, that’s barely holding everything together, haunt you when you see someone else use it?
My teammates and I have been through a similar journey lately while working on a small project called Code Character, an AI programming challenge where users write C++ code to control troops to battle against enemies!
One can use the interface to write code on an online editor, and submit their C++ code…