written by kity-cat
will find best move depends on hardness (Hard , intermediate and easy)
using minimax algorithm (develop intermediate and easy) for game artificial intelligence
First clone this repository to your local storage
git clone https://github.com/Erfan-ram/Tic-tac-toe-Ai.git
╰─➤ cd Tic-tac-toe-Ai
you would have 2 choices to continue
To run this project using makefile first istall make
sudo apt install make
After cloning and open directory it's time to run project
make
After this a file name tic-tac-toe
will appear . you just need to run program using
make run
or
./tic-tac-toe
i optimized Makefile to run the program using
make run
- if you want to develop it or test your code you can locate your codes on Makefile line 19
also you can clean complied .o
output files using
make clean
you can run below code without being involved with make 🥲
g++ start.cpp src/Main.cpp -o tic-tac-toe
╰─➤ ./tic-tac-toe
- if you are not familiar with clean coding and modules and headers or you are beginner at coding you can check
old-struct
branch that exclude header files . and it just need to run main.cpp