Skip to content

SKKammar/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

A simple and interactive web-based Tic Tac Toe game.
Play against a friend or challenge the computer (with a chance to win!).

Features

  • 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.jpg to use your own image)

How to Run

  1. Download/clone the repository.
  2. Make sure all three files are in the same folder:
    • index.html
    • style.css
    • script.js
  3. Ensure that the background image file wp12472923-thar-hd-wallpapers.jpg is present in the same folder.
  4. Open index.html in your web browser.

File Structure

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

Customization

  • Replace wp12472923-thar-hd-wallpapers.jpg with your favorite image for a personalized look.
  • You can update sound effect URLs in script.js for different audio.

License

This project is for educational purposes and free to use.

About

A TIC-TAC-TOE game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors