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.
- 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
- Python 3.x
-
Clone or download this repository to your local machine.
-
Open a terminal or command prompt.
-
Navigate to the directory containing the
XO_Game.py
file. -
Run the game using the following command:
python XO_Game.py