Skip to content

Aryankhanf22/tic-tac-toe-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โŒโญ• Tic Tac Toe Game

Test your strategy skills with this fun and interactive Tic Tac Toe game!
Play against a friend and try to get three in a row to win ๐ŸŽฏ

๐Ÿš€ Live Demo
๐Ÿ‘‰ Play Now: https://aryankhanf22.github.io/tic-tac-toe-game/


โœจ Features

  • ๐ŸŽฎ Classic 2-player Tic Tac Toe gameplay
  • ๐ŸŽจ Clean and simple UI with smooth interactions
  • โšก Instant win and draw detection
  • ๐Ÿ”„ Restart game functionality
  • ๐Ÿ“ฑ Responsive and lightweight design

๐Ÿ•น๏ธ How to Play

  1. Player X starts the game
  2. Click on an empty box to place your mark
  3. Players take turns between X and O
  4. First player to align 3 marks (row, column, or diagonal) wins
  5. If all boxes are filled with no winner, the game ends in a draw

๐Ÿ› ๏ธ Built With

  • HTML5 โ€“ Structure of the game board
  • CSS3 โ€“ Styling and layout
  • JavaScript โ€“ Game logic and interactivity

๐Ÿ“ Project Structure

tic-tac-toe-game/
โ”‚
โ”œโ”€โ”€ index.html        # Main HTML file
โ”œโ”€โ”€ style.css         # Styling and layout
โ”œโ”€โ”€ script.js         # Game logic
โ”œโ”€โ”€ img.jpg           # Game image / preview
โ””โ”€โ”€ README.md         # Project documentation

๐Ÿš€ Getting Started (Run Locally)

  1. Clone the repository:
git clone https://github.com/aryankhan22/tic-tac-toe-game.git
  1. Navigate to the project folder:
cd tic-tac-toe-game
  1. Open index.html in your browser

  2. Enjoy the game ๐ŸŽ‰

About

A simple Tic Tac Toe game built using HTML, CSS, and JavaScript. Play directly in the browser.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published