Skip to content

red12magic/xo-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

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

About

small project in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages