A fun and interactive Tic-Tac-Toe game with single-player (AI) and two-player modes! Built with HTML, CSS, and JavaScript.
- Single Player Mode (AI opponent)
- Two Player Mode (Play with a friend)
- Stylish & Handwritten Font Theme
- Game Restart Functionality
- Responsive Design
Check it out here: [https://stephenhilt.com/tictac/] 🎮
- HTML5 (Game Structure)
- CSS3 (Custom Styling & Animations)
- JavaScript (Game Logic & AI)
- Choose Single Player or Two Player mode.
- Click on any of the empty cells to make your move.
- The game follows classic Tic-Tac-Toe rules:
- Three Xs or Os in a row, column, or diagonal wins!
- If the board is full and no one wins, it's a draw.
- The game will display the winner or draw message.
- Click Restart to play again!
- Clone the repository:
git clone https://github.com/sjhilt/Tic-Tac-Toe.git
- Navigate into the project folder:
cd Tic-Tac-Toe
- Open
index.html
in your browser and start playing!
📁 tic-tac-toe
│── index.html # Game layout
│── style.css # Styling & design
│── script.js # Game logic & AI
│── tictac.py # Python version of the game
└── README.md # Documentation
- Modify CSS (
style.css
) to change the game's look & feel. - Tweak JavaScript (
script.js
) to:- Adjust the AI difficulty.
- Change winning animations.
- Add sound effects.
- Add difficulty levels for AI
- Animate the winning line
- Store scores using local storage
Want to enhance the game? Fork this project and submit a pull request! 💡
This project is licensed under the MIT License.
Enjoy playing Tic-Tac-Toe! 🎮🔥✨