This is a simple Tic Tac Toe game built using HTML, CSS, and JavaScript. Players take turns placing "X" and "O" in a 3x3 grid, with the goal of getting three in a row.
- Two-player game ("X" and "O")
- Game status display
- Winning and draw detection
- Restart game functionality
- Interactive UI with styling
- HTML
- CSS
- JavaScript
- Open the
index.htmlfile in a web browser. - The game starts with player "X".
- Click on an empty cell to make a move.
- The game alternates between "X" and "O".
- The game announces a winner if a player gets three in a row.
- If all cells are filled without a winner, the game ends in a draw.
- Click the "Restart Game" button to reset and play again.
/tic-tac-toe
│-- index.html # HTML structure of the game
│-- index.css # CSS for styling the game
│-- index.js # JavaScript logic for the game
│-- README.md # Project documentation
- Clone the repository or download the files.
git clone https://github.com/HimanshuChelani27/tic-tac-toe.git
- Open
index.htmlin a web browser. - Play the game!
- Add AI opponent mode
- Improve UI/UX with animations
- Mobile responsiveness