TicTacToe in C
Time spent
- Total : 9 hrs 45 mins
game_SDL.c: 2 hrs 46 minsgame_text.c: 2 hrs 5 minsgame.c: 1 hr 24 minsgame_test.c: 1 hr 16 minsc.yml: 1 hrCMakeLists.txt: 26 minsgame.h: 21 mins
Dependencies
apt install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsdl2-mixer-dev # for Linux Debian/Ubuntu
brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer # for MacOS
Compilation
With CMake:
mkdir build ; cd build ; cmake .. ; make
CLI
./game_text [height width nb_square]
Graphical Interface
./game_sdl [height width nb_square]