Skip to content

The Tic-Tac-Toe is a classic game. The following code is my implementation using Object-Oriented Programming

Notifications You must be signed in to change notification settings

zelshahawy/Tic-Tac-To-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Tic-Tac-To-Python

Tic-Tac-Toe Game Program Description The Tic-Tac-Toe Game Program is a simple command-line implementation of the classic two-player game, Tic-Tac-Toe. This Python program allows two players to take turns placing 'X' and 'O' marks on a 3x3 grid, with the objective of getting three in a row vertically, horizontally, or diagonally. The program is user-friendly, engaging, and offers a fun way to test your strategic thinking and decision-making skills.

Features User-Friendly Interface: The program provides a simple and intuitive command-line interface for players of all ages. Two-Player Mode: Players can compete against each other on the same computer, taking turns to make their moves. Random Player Selection: The game randomly selects the starting player to ensure fairness. Win Conditions: The program checks for win conditions after each move and declares the winner when a player gets three in a row. Draw Detection: It identifies a draw (a full board with no winner) and declares the game as a tie. Scorekeeping: The program keeps track of the number of wins for each player. Error Handling: It prevents illegal moves and ensures the game's integrity. Option to Restart: Players can choose to start a new game without exiting the program. How to Use Clone or download the program to your local computer. Ensure you have Python installed (the program is compatible with Python 3). Open a terminal or command prompt. Navigate to the directory where the program is located. Run the program by executing python tic_tac_toe.py. Follow the on-screen instructions to play the game. Enjoy playing Tic-Tac-Toe against a friend!

About

The Tic-Tac-Toe is a classic game. The following code is my implementation using Object-Oriented Programming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages