Introduction
It's time to put your OOP skills to the test by building a command-line Tic Tac Toe game. This project will exercise your understanding of classes, game logic, and user input handling.
Requirements
- Build a playable Tic Tac Toe game that runs in the terminal.
- Use OOP — create classes for
Board,Player, andGame. - The board should display after each move.
- Validate moves (no overwriting occupied cells).
- Detect win conditions and draws.
- Allow players to play again without restarting the program.
Hints
- Represent the board as a list of 9 elements (or a 3x3 nested list).
- Check rows, columns, and diagonals for wins.
- Use
input()for player moves.