Skip to content

DavisRayM/tictactoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe (Terminal-Based AI Opponent)

CI

A commandline Tic-Tac-Toe game implemented in C, featuring an AI opponent powered by the Minimax algorithm.

Limitations

  • Compatible only with Linux environments.
  • Requires a terminal that supports ANSI escape codes; otherwise, the UI may not display correctly.

How to Play

To build and run the game, use the following commands:

make  
./tictactoe  

Enjoy playing against the AI!

Testing

The game has a few tests implemented; mostly for the board representation. In case you'd like to run the tests use:

make test

NOTE: Testing requires the CUnit library

About

Terminal based Tic-Tac-Toe against AI Opponent

Topics

Resources

License

Stars

Watchers

Forks