This repository contains a Tic Tac Toe game implemented in Python. Players can compete against each other or play against the computer. The game is designed to be simple and fun, with clear instructions and an interactive console interface.
Play against another player or the computer. Easy-to-follow game rules. A user-friendly interface with clear prompts. Displays the game board after each move. Declares the winner or a tie at the end of the game.
Follow the prompts: Choose your symbol (X or O). Decide whether you want to play against another player or the computer. Take turns making your moves by specifying the row and column.
Players take turns marking a 3x3 grid. The first player to get 3 in a row (horizontally, vertically, or diagonally) wins. If all squares are filled and no player has 3 in a row, the game ends in a tie.
Hello! Welcome to Tic Tac Toe! Rules: Player 1 (X) and Player 2 (O), or a computer, take turns marking a 3x3 grid. Get 3 in a row to win! Let's start! Press Enter to continue.
Here is the playboard:
---+---+---
| |
---+---+---
| |
---+---+---
| |
---+---+---
Player 1, do you want to be X or O? X Player 2 will be O. Press enter to continue.
Do you want to play against another player or the computer? (player/computer): computer
Player X's turn.
Pick a row (0-2): 1
Pick a column (0-2): 1
---+---+---
| |
---+---+---
| X |
---+---+---
| |
---+---+---
Computer O's turn. ...
Python 3.x
This project is open-source and available for modification and distribution.