Welcome to the Tic Tac Toe Game, a classic game you can play in your terminal! This Python-powered implementation lets you challenge your friends or play against the computer (with a little random AI thrown in!). The game was built for study purposes using Python functions along with the os and random modules to clear the terminal and create some randomness for the computer player.
- Two-player mode: Play with a friend in classic Tic Tac Toe style.
- Single-player mode: Challenge a simple computer AI (random moves).
- Terminal-based: The game runs directly in your terminal, no GUI needed!
- Function-based design: The game logic is neatly organized into functions to keep the code modular and easy to follow.
-
Clone or Download the Repo
Clone this repository to your local machine using:git clone https://github.com/yourusername/tic-tac-toe.git -
Run the Game in your Terminal
python tic_tac_toe.py -
Select wheter to play as X or O
-
Select the positions to mark them until you either win or lose