JavaScript XO Game is a Tic-Tac-Toe game built with vanilla HTML, CSS, and JavaScript. You play as X against a computer opponent (O) on a 3x3 grid โ the computer blocks your winning moves, takes its own winning moves when available, and otherwise plays the center or a random open cell.
- Features
- Screenshots
- Installation
- Project Structure
- Technologies Used
- License
- Contributing
- Connect with Me
- โ Responsive Design โ The game board adapts to all screen sizes.
- ๐ฎ Player vs Computer โ You play X, the computer plays O with basic blocking/winning logic.
- ๐ Winner Highlight โ The winning combination is highlighted in green with a scale animation.
- ๐ค Draw Detection โ Displays a message when the board fills up with no winner.
- ๐ Play Again Button โ Appears at game end to instantly reset the board.
git clone https://github.com/Iqbolshoh/javascript-xo-game.git
cd javascript-xo-gameSimply open the index.html file in any modern web browser to start playing โ no build step or server required.
javascript-xo-game/
โโโ index.html # Game markup
โโโ src/
โ โโโ css/style.css # Board styling and animations
โ โโโ js/script.js # Game logic + simple computer opponent
โ โโโ images/ # Preview screenshots
โโโ LICENSE
โโโ README.md
This project is open-source and available under the MIT License.
๐ฏ Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request.
๐ฌ I love meeting new people and discussing tech, business, and creative ideas. Let's connect! You can reach me on these platforms:

