A simple and interactive web-based Tic Tac Toe game.
Play against a friend or challenge the computer (with a chance to win!).
- Player vs Player and Player vs Computer modes
- Responsive and animated game board
- Sound effects for moves and results
- Popup for game results (Win/Draw) with options to retry or exit
- Main menu to start or exit the game
- Computer loses intentionally in 1 out of 10 games for fun!
- Custom background (update
wp12472923-thar-hd-wallpapers.jpgto use your own image)
- Download/clone the repository.
- Make sure all three files are in the same folder:
index.htmlstyle.cssscript.js
- Ensure that the background image file
wp12472923-thar-hd-wallpapers.jpgis present in the same folder. - Open
index.htmlin your web browser.
index.html # Main game structure
style.css # Styling and animations
script.js # Game logic and interactivity
README.md # This documentation
wp12472923-thar-hd-wallpapers.jpg # Background image
- Replace
wp12472923-thar-hd-wallpapers.jpgwith your favorite image for a personalized look. - You can update sound effect URLs in
script.jsfor different audio.
This project is for educational purposes and free to use.