Skip to content

fbunaren/tic-tac-toe-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bunaren TicTacToe AI

Created by Fransiscus Emmanuel Bunaren

Bunaren TicTacToe AI is TicTacToe AI written in Python, it uses MiniMax algorithm to find the best move.

How to use

  • To play against AI, run the play.py file
  • To use the AI to find best move , you can call bestMove method in engine.py file. The input is a string with length of 9. X,O, and space are the allowed symbols for the input.