Skip to content

AnasAliChafai/TicTacToe-DesktopApp

Repository files navigation

🎮 Tic Tac Toe - Desktop App

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.


🧩 Features

  • 🧠 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

🖥️ Technologies Used

  • Language: C#
  • Framework: .NET Framework (Windows Forms)
  • IDE: Visual Studio

🚀 How to Run

  1. Clone or download this repository.
  2. Open the .sln file using Visual Studio.
  3. Build and run the project (Ctrl + F5).

🕹️ Gameplay

  • 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.

📸 Screenshot

image

About

A simple Tic Tac Toe (XO) desktop game built using C# and Windows Forms. It supports two-player mode, win/draw detection, and board reset functionality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages