This is a simple Tic-Tac-Toe game project built using HTML, CSS, and JavaScript. It was developed as a small project to practice the logic and functionality of JavaScript.
-
Playable X vs O game against the computer.
-
Sound effects for different game outcomes.
- Sounds play when a move results in a win, loss, or tie.
-
The game keeps track of:
- Number of Wins
- Number of Losses
- Number of Ties
-
A challenging experience where the player competes against an AI opponent.
- The player is X and the computer is O.
- Players take turns placing their marker (X or O) in one of the nine squares.
- The first to get three in a row (horizontally, vertically, or diagonally) wins.
- If all squares are filled and no player has won, the game ends in a tie.
- Clone or download the repository:
git clone https://github.com/abdrrahim2002/Tic-Tac-Toe-Game.git
-
Open the project in VScode
-
Install the Live Server extension in VS Code if you haven't already.
-
Right-click on
tic tac toe.html
and select Open with Live Server to start the game. -
Enjoy !!!
- HTML
- CSS
- JavaScript
This project was built as a way to enhance my JavaScript skills, focusing on game logic. Thank you for checking out my Tic-Tac-Toe game!