A simple Tic Tac Toe (XO) game built using C# (.NET Windows Forms).
The game allows two players to play alternately, detects the winner or a draw, and provides a reset button to start a new round.
- 🧠 Two-player mode (Player 1: X, Player 2: O)
- 🏆 Winner and draw detection
- 🔁 Reset button to restart the game
- 🎨 Custom-designed grid drawn using GDI+ (Paint event)
- 💡 Clean and modular C# code
- Language: C#
- Framework: .NET Framework (Windows Forms)
- IDE: Visual Studio
- Clone or download this repository.
- Open the
.slnfile using Visual Studio. - Build and run the project (
Ctrl + F5).
- Click on any box to place your mark (X or O).
- The game automatically switches between Player 1 and Player 2.
- Once a player wins or all boxes are filled, the game displays the result.
- Press Reset to play again.