Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 773 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 773 Bytes

XO Game

This is a simple command-line XO (Tic-Tac-Toe) game implemented in Python. The game allows two players to play against each other by taking turns to place their symbols (X or O) on a 3x3 board. The goal is to get three of your symbols in a row, column, or diagonal to win the game.

Features

  • Two-player mode
  • Input validation for names and symbols
  • Display of the game board
  • Detection of win and draw conditions
  • Option to restart or quit the game after each round

Requirements

  • Python 3.x

How to Run

  1. Clone or download this repository to your local machine.

  2. Open a terminal or command prompt.

  3. Navigate to the directory containing the XO_Game.py file.

  4. Run the game using the following command:

    python XO_Game.py