Skip to content

Instantly share code, notes, and snippets.

@benjaminbollen
Created April 3, 2018 13:59
Show Gist options
  • Save benjaminbollen/befbc4234366afcae09b779a77c8886b to your computer and use it in GitHub Desktop.
Save benjaminbollen/befbc4234366afcae09b779a77c8886b to your computer and use it in GitHub Desktop.
Write a solidity implementation of the adverserial two-player game of tic-tac-toe in a smart contract.
You can find the rules on Wikipedia (https://en.wikipedia.org/wiki/Tic-tac-toe).
The game should allow two players to join a new board. Each must play at their turn and the game can end in a victory or a tie.
Please provide a test suite using truffle framework.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment