Skip to content

waelodeh98/XO-Game

Repository files navigation

Tic-Tac-Toe Console Game (C++)

Screenshot

Watch the project video on LinkedIn: Click here

A simple console-based Tic-Tac-Toe (X-O) game written in C++ for Windows. The game supports Player vs Player and Player vs Computer modes, with a colorful interface and sound effects to enhance the user experience.

This project was built to practice core C++ programming concepts and console application development.

✨ Features

Player vs Player & Player vs Computer modes

Colored console output

Sound effects for moves and game results

Easy position selection using numbers (1–9)

Automatic win and draw detection

Option to replay without restarting the program

🕹️ How It Works

Choose the game mode from the main menu

Player O always starts

Enter a number (1–9) to place your mark

The game checks for a winner after each move

If all positions are filled with no winner, the game ends in a draw

🛠️ Technologies

Language: C++

Platform: Windows

Concepts used: Arrays, functions, enums, loops, random numbers

▶️ Run the Game

Compile and run using any C++ compiler on Windows:

g++ xo_game.cpp -o xo_game xo_game

Click on any image to watch the project video on LinkedIn

📸 Screenshots

Screenshot 2026-01-15 092131

Screenshot 2026-01-15 092204

Screenshot 2026-01-15 092231

👤 Author

Wael Samer Software Engineering Student

GitHub: github.com/waelodeh98 LinkedIn: linkedin.com/in/wael-samer