This lab implements a simple Tic-Tac-Toe game using C# and WPF. The project focuses on applying object-oriented programming principles to handle game logic, user interactions, and graphical updates.
- Two-player turn-based gameplay:
- Players alternate turns using the
X
andO
markers.
- Players alternate turns using the
- Win and draw detection:
- Detects wins through rows, columns, or diagonals.
- Declares a draw if the board is full and no player has won.
- Error handling for invalid moves:
- Prevents players from overwriting already marked squares.