Skip to content

aleferu/tic-tac-toe-minimax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TIC-TAC-TOE with the minimax algorithm

Dependencies:

  • raylib
  • C++ compiler (only g++ has been tested).
  • Optional python3 if you compile with build.py.

How to play

  • Left click to place your x.
  • The AI is playing with the o.
  • Press the 'r' key to reset the game when over.
  • Resize the window at your liking.

How to build

$ ./build.py

or

$ python3 build.py

or

$ ./build.sh

or compile as you want. Don't forget to link raylib.