Skip to content

yahalloe/finalProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A tic-tac-toe written in C


✨ features

  • 🤖 A VS bot game mode
    • normal bot
    • hard bot (minimax)
  • 🧍‍♂️A player vs player

image

image


🛠️ Installation

clone the repo

$ git clone https://github.com/yahalloe/finalProject.git

🚀 Running the program

Running the program is very straight forward.

Just open the main.exe file

$ ./bin/main.exe

or

Just compile the program using your favorite C compiler

Using Terminal

Install your favorite C compiler gcc/clang/tcc/msvc etc... If you're using an IDE, just run the file there.

Go into the downloaded tic-tac-toe directory.

$ cd finalproject

type the Commands:

gcc compiler

$ gcc -o main main.c library.c
$ ./main

clang compiler

$ clang -o main main.c library.c
$ ./main

Things to be implemented:

  1. harder bot (the color or theme changes)
  2. leaderboard file // fopen()
  3. 1 on 1 game mode
  4. different color for each symbol i.e. X - light blue 0 - gray