A really simple tictactoe game for the console.
I've also written one using MonoGame if you're looking for GUI: https://github.com/gldraphael/mg-ttt
- Clone the repository
cd
into the cloned directory and runmake
.- An
a.out
executable should be generated. Run it using./a.out
.
Alternatively you may paste this in your terminal:
git clone https://github.com/gldraphael/ttt.git
cd ttt
make
./a.out
Also tested on windows using MSVC. Use cl /EHsc src/main.cpp
to build.
For windows use:
git clone https://github.com/gldraphael/ttt.git
cd ttt
cl /EHsc src/main.cpp
./main.exe
- Clang or G++ (or MSVC for windows)