Skip to content

A simple and responsive Tic Tac Toe game built with HTML, CSS, and JavaScript. Players take turns marking the grid, and the game automatically detects the winner or a draw.

Notifications You must be signed in to change notification settings

Haseeb-code1/Tic-Tac-Toe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Tic Tac Toe Game

A simple and responsive Tic Tac Toe game built with HTML, CSS, and JavaScript.
Players take turns marking the grid, and the game automatically detects the winner or a draw.


๐Ÿš€ Features

  • ๐ŸŽฒ Two-player gameplay
  • ๐Ÿ† Score tracking for Player 1 and Player 2
  • โœจ Winner popup with close button
  • ๐Ÿ”„ New Game and Reset options
  • ๐Ÿ“ฑ Responsive design (works on desktop & mobile)
  • ๐ŸŽจ Clean UI with animations

๐Ÿ“ธ Screenshot

Annotation 2025-09-04 000238

๐Ÿ› ๏ธ Tech Stack HTML5 โ†’ Game structure

CSS3 โ†’ Styling and responsiveness

JavaScript (Vanilla) โ†’ Game logic

โ–ถ๏ธ How to Play Open the game in your browser.

Player 1 starts with X, Player 2 with O.

Players take turns clicking on boxes.

The game declares a winner or a draw.

Use New Game to play again or Reset to clear scores.

๐Ÿ“‚ Project Structure pgsql Copy code tic-tac-toe/ โ”‚โ”€โ”€ index.html โ”‚โ”€โ”€ style.css โ”‚โ”€โ”€ script.js โ”‚โ”€โ”€ img/ โ”‚ โ”œโ”€โ”€ 1.png โ”‚ โ”œโ”€โ”€ close.svg โ”‚ โ”œโ”€โ”€ wor.webp โ”‚ โ””โ”€โ”€ screenshot.png ๐Ÿ“ Future Improvements ๐Ÿ”Š Add sound effects

๐Ÿค– Add single-player mode with AI

๐ŸŒ Deploy online: https://tic-tac-toe-game-jvafz1s3l-haseeb-code1s-projects.vercel.app/

๐Ÿ“Œ License This project is licensed under the MIT License โ€“ feel free to use and modify# Tic-Tac-Toe-Game

About

A simple and responsive Tic Tac Toe game built with HTML, CSS, and JavaScript. Players take turns marking the grid, and the game automatically detects the winner or a draw.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published