Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.01 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.01 KB

Tic Tac Toe

A student project for a comandline tic tac toe game.

Credits: The code was written following this tutorial.

Build Process

To build this project I used gcc to compile it.

git clone https://github.com/nmarzagao/tic-tac-toe.git

cd tic-tac-toe/

make 

./bin/tic-tac-toe

If you want to use a different compiler change the CC variable in the make file. For exemple:

CC = clang

Project Structure

This project is very simple so I'll be quick.

  • All source files are in the src directory.
  • When the project compiles it's bineries are sent to the bin directory.
  • The project is divided in to 2 parts:
    • gamelib.c and .h: The files contaning all of the game's functions.
    • main.c: The file contaning the main function.