Skip to content

webdev-desktop/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ TIC TAC TOE Game

๐Ÿ”— Live Demo

A modern, responsive, and interactive Tic Tac Toe game built using HTML, CSS, and JavaScript with a clean UI and persistent data using localStorage. Play with your friends, track scores, and enjoy a smooth responsive UI ๐Ÿš€


โœจ Key Highlights

  • โšก Fast and lightweight (no frameworks)
  • ๐ŸŽจ Modern glass-morphism UI
  • ๐Ÿ“ฑ Fully responsive design
  • โœ๏ธ Double click to edit player names
  • ๐Ÿ† Score tracking system
  • ๐Ÿ’พ Data stored in localStorage
  • ๐Ÿ” Alternating first turn system (fair gameplay)

๐Ÿ› ๏ธ Tech Stack

  • HTML5
  • CSS3
  • JavaScript

๐Ÿš€ Features

  • ๐ŸŽฎ 2 Player gameplay (X vs O)
  • ๐Ÿ”„ Alternating starting player (fair turn system)
  • ๐Ÿ‘ค Editable player names (double click)
  • ๐Ÿ† Live score tracking
  • ๐Ÿ’พ Persistent data using localStorage
  • ๐Ÿ” New Game โ†’ resets board only
  • ๐Ÿ”„ Reset โ†’ resets entire game (including scores)
  • ๐Ÿค Tie detection system
  • ๐Ÿ™ˆ Clean result screen (players hidden on win)
  • ๐ŸŸข Active player turn highlight

๐Ÿ“‚ Project Structure

project/
โ”‚
โ”œโ”€โ”€ assets/
โ”‚   โ”œโ”€โ”€ css/
โ”‚   โ”‚   โ””โ”€โ”€ style.css
โ”‚   โ””โ”€โ”€ js/
โ”‚       โ””โ”€โ”€ script.js
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ LICENSE/
โ”œโ”€โ”€ README.md/


๐Ÿ“ธ Screenshots

๐Ÿ“ธ Desktop Preview ๐Ÿ“ธ Mobile Preview


โš™๏ธ Installation

Follow these steps to run locally:

# 1. Clone the repository
git clone https://github.com/webdev-desktop/Tic-Tac-Toe.git

# 2. Navigate to folder
cd Tic-Tac-Toe

# 3. Open in browser
Open index.html

๐Ÿง‘โ€๐Ÿ’ป How to Use

  1. Click on any box to start the game
  2. Players take turns automatically (X / O)
  3. Starting player alternates every new game
  4. Double click player name โ†’ edit
  5. Winner gets score updated automatically
  6. Click New Game โ†’ resets board only
  7. Click Reset โ†’ resets full game (scores included)
  8. Scores persist after refresh

๐Ÿ”ฎ Future Improvements

  • ๐Ÿค– AI opponent (play vs computer)
  • ๐ŸŽฏ Winning line highlight animation
  • ๐Ÿ”Š Sound effects
  • ๐ŸŒ— Dark / Light mode toggle

๐Ÿค Contribution

Contributions are welcome!

# Fork the repo
# Create new branch
git checkout -b feature/your-feature

# Commit
git commit -m "Add feature"

# Push
git push origin feature/your-feature

Then open a Pull Request ๐Ÿš€


๐Ÿ‘จโ€๐Ÿ’ป Author

Made with โค๏ธ by Apurv (WebDev Admin) ๐Ÿ”— GitHub


๐Ÿ“„ License

This project is licensed under the MIT License.


โญ Support

โญ If you like this project, don't forget to star the repo!

About

๐ŸŽฎ A modern Tic Tac Toe web app with score tracking, editable players, local-Storage support, and smooth responsive UI โ€” built using pure JavaScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors