Skip to content

nmarzagao/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.