Skip to content

Erfan-ram/Tic-tac-toe-Ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-tac-toe-Ai 🎲

written by kity-cat :octocat:

will find best move depends on hardness (Hard , intermediate and easy)

using minimax algorithm (develop intermediate and easy) for game artificial intelligence

Run tic tac toe

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

Makefile

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



Quick run

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

About

Tic tac toe using Ai programmed in c++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published