/Tic-Tac-Toe

"A simple command-line Tic Tac Toe game in Python. Play against another player in this classic game with intuitive input and clear game state display."

Primary LanguagePython

Tic Tac Toe Game

This is a simple implementation of the classic Tic Tac Toe game written in Python.

Introduction

Tic Tac Toe is a two-player game where each player takes turns marking a space in a 3x3 grid with their respective symbol (X or O). The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.

Features

  • Command-line interface
  • Two-player mode
  • Input validation
  • Game state display

Requirements

  • Python 3.x

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/tic-tac-toe.git
  2. Navigate to the project directory:
    cd tic-tac-toe

Usage

Run the game by executing the following command:

python tic_tac_toe.py