This simple web-based Tic Tac Toe game is built with basic HTML, CSS, and JavaScript, enabling two players to play interactively on the same device.
Live Demo: Play Tic Tac Toe here!
- Simple Interface: A clean and minimalistic design for easy gameplay.
- Two Player Mode: Designed for two players, playing on the same device.
- Interactive UI: Players can click on the grid to make a move; the game automatically checks for wins or ties.
These instructions will get your copy of the project up and running on your local machine for development and testing purposes.
A modern web browser is required to run this game.
-
Clone the repository or download the ZIP file.
git clone https://github.com/yourusername/Road-Map-to-Web-Dev.git
-
Navigate to the Tic Tac Toe directory
Open a terminal and use the following command to navigate to the Tic Tac Toe directory:
cd 'Road-Map-to-Web-Dev/Basic HTML, CSS and JS/Tic Tac Toe'
-
Then, open the index.html file in a web browser to start the game.
The game board consists of a 3x3 grid:
- Player 1 starts the game and plays with 'X', followed by Player 2 who plays with 'O'.
- Players take turns placing their symbols on the grid.
- The first player to align three symbols vertically, horizontally, or diagonally wins the game.
- If all cells are filled and no player has aligned three symbols, the game ends in a draw.
- HTML: Structures the game interface.
- CSS: Styles the game interface.
- JavaScript: Manages game mechanics and interactivity.