8000 GitHub - sjhilt/Tic-Tac-Toe
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

sjhilt/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎲 Tic-Tac-Toe

A fun and interactive Tic-Tac-Toe game with single-player (AI) and two-player modes! Built with HTML, CSS, and JavaScript.

🏆 Features

  • Single Player Mode (AI opponent)
  • Two Player Mode (Play with a friend)
  • Stylish & Handwritten Font Theme
  • Game Restart Functionality
  • Responsive Design

🚀 Live Demo

Check it out here: [https://stephenhilt.com/tictac/] 🎮

🛠️ Technologies Used

  • HTML5 (Game Structure)
  • CSS3 (Custom Styling & Animations)
  • JavaScript (Game Logic & AI)

🎮 How to Play

  1. Choose Single Player or Two Player mode.
  2. Click on any of the empty cells to make your move.
  3. 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.
  4. The game will display the winner or draw message.
  5. Click Restart to play again!

🏗️ Setup & Installation

  1. Clone the repository:
    git clone https://github.com/sjhilt/Tic-Tac-Toe.git
  2. Navigate into the project folder:
    cd Tic-Tac-Toe
  3. Open index.html in your browser and start playing!

📝 File Structure

📁 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

🎨 Customization

  • 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.

🚀 Future Improvements

  • Add difficulty levels for AI
  • Animate the winning line
  • Store scores using local storage

🤝 Contributing

Want to enhance the game? Fork this project and submit a pull request! 💡

📜 License

This project is licensed under the MIT License.


Enjoy playing Tic-Tac-Toe! 🎮🔥✨

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0