Skip to content

CezarJedi/X-O

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe with AI Bot

A simple Tic Tac Toe game in Python where you play against an AI bot. The bot uses the Minimax algorithm for decision-making and can play at three different difficulty levels.

Features

  • Player vs AI bot gameplay
  • Three difficulty levels:
    • Easy (1): Bot makes random moves sometimes
    • Medium (2): Bot evaluates positions heuristically
    • Hard (3): Bot plays optimally using full Minimax
  • Detects wins, losses, and draws
  • Clean text-based interface

Requirements / Dependencies

  • Python 3.10 or newer (tested on 3.13.5)
  • Libraries: No external libraries required (uses only standard Python libraries like os and json)

How to Play

  1. Run the Python script:
    python tictactoe.py

About

A simple Tic Tac Toe game in Python where you play against an AI bot. The bot uses the Minimax algorithm for decision-making and can play at three different difficulty levels.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages