Skip to content

A simple Tic Tac Toe game in Python for two players or against an AI. Runs in the terminal with a clean interface. Players take turns marking spots until a winner is determined or the game ends in a draw. Features input validation, clear board display, and an optional AI opponent for solo play.

Notifications You must be signed in to change notification settings

namratasingh26/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Tic Tac Toe in Python

A simple Tic Tac Toe game in Python for two players or against an AI. Runs in the terminal with a clean interface. Players take turns marking spots until a winner is determined or the game ends in a draw. Features input validation, clear board display, and an optional AI opponent for solo play.

Features

  • Two-player mode
  • AI opponent (optional)
  • Simple command-line interface
  • Input validation to prevent invalid moves
  • Clear board display

Installation

  1. Clone this repository:
    git clone https://github.com/your-username/tic-tac-toe-python.git
    cd tic-tac-toe-python

About

A simple Tic Tac Toe game in Python for two players or against an AI. Runs in the terminal with a clean interface. Players take turns marking spots until a winner is determined or the game ends in a draw. Features input validation, clear board display, and an optional AI opponent for solo play.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published