This is a simple command-line Tic-Tac-Toe game implemented in Python. The game allows two players to take turns marking spaces on a 3x3 grid, and the first player to get three in a row wins. The game board is displayed in the console.
- Run the script using a Python interpreter:
python tic_tac_toe.py
- Players take turns entering their moves by choosing a position (e.g., "a1", "b2").
- The game continues until a player wins, or it's a draw.
- After the game ends, you can choose to play again or exit.
- The game board is represented as follows:
a b c
| |
1 | |
_____|_____|_____
| |
2 | |
_____|_____|_____
| |
3 | |
| |
- Players enter their moves by providing the position (e.g., "a1", "b2").
- After each game, you'll be prompted to restart or exit.
- Player vs. Player mode.
- Detection of wins and draws.
- Restart the game after completion.
Feel free to contribute or report issues on GitHub.
This project is licensed under the MIT License - see the LICENSE file for details.