Skip to content

DarlanSchmeller/tic-tac-toe-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Tic Tac Toe Game ๐ŸŽฎ

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.

๐Ÿš€ Features

  • 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.

๐Ÿ–ฅ๏ธ How to Play

  1. Clone or Download the Repo
    Clone this repository to your local machine using: git clone https://github.com/yourusername/tic-tac-toe.git

  2. Run the Game in your Terminal python tic_tac_toe.py

  3. Select wheter to play as X or O

  4. Select the positions to mark them until you either win or lose

About

A Tic-Tac-Toe game in Python that runs on the terminal

Topics

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Contributors

Languages