An on-chain TicTacToe game, where two players compete to align 3 markers in a row. The game consists of a 3x3 grid. The game has been won if three markers were aligned in a row. Otherwise, it's a draw.
More information can be found in the specification.
The project consists of a smart contract.
TicTacToe
├── project
│ ├── contracts
│ │ └── tictactoe-contract
│ │ ├── src/main.sw
│ │ └── tests/harness.rs
│ ├── README.md
│ └── SPECIFICATION.md
├── ui
│ ├── README.md
│ └── SPECIFICATION.md
└── README.md
TODO: The user interface does not currently exist therefore its README.md and SPECIFICATION.md are empty.
In order to run the subsequent commands change into the following directory /path/to/TicTacToe/project/<here>
.
forc build --locked
Before running the tests the programs must be compiled with the command above.
cargo test --locked