Classic X vs O desktop game — two players, one keyboard, zero mercy.
- Two-player local gameplay — take turns on the same machine
- Instant New Game — reset the board in one click without restarting the app
- Win & draw detection — all 8 winning lines checked after every move
- Clean, minimal UI — 3×3 grid, large symbols, no distractions
| Layer | Technology |
|---|---|
| Language | C# |
| UI Framework | Windows Forms (WinForms) |
| Runtime | .NET Framework 4.x |
| IDE | Visual Studio |
- Windows OS
- Visual Studio 2019 or later (Community Edition is fine)
git clone https://github.com/denis-mikhalev/Game_Tic-tac-toe.git
cd Game_Tic-tac-toe/GameXO- Open
GameXO.slnin Visual Studio - Press F5 to build and run
No NuGet packages, no external dependencies — it just works.
- X always goes first. Click any empty cell to place your symbol.
- Get three in a row — horizontally, vertically, or diagonally — to win.
- If all 9 cells fill up with no winner, it's a draw.
- Click New Game in the menu to play again.
GameXO/
├── Game.cs # Game state & win-detection logic
├── FormGame.cs # UI event handlers & turn management
├── FormGame.Designer.cs # WinForms designer-generated layout
└── Program.cs # Entry point
Distributed under the MIT License. © 2026 Denis Mikhalev.
