Skip to content

A simple Tic Tac Toe game built with HTML, CSS, and JavaScript to practice game logic and DOM manipulation.

Notifications You must be signed in to change notification settings

letDiyaCode/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🎮 Tic Tac Toe Game

A simple and fun Tic Tac Toe game built using HTML, CSS, and JavaScript.
Play with a friend and see who wins — ❌ or ⭕!


🚀 Features

  • Two-player mode
  • Detects winner and draw
  • Simple and responsive UI
  • Game restart option
  • Smooth user interaction

🛠️ Tech Stack

Technology Purpose
HTML Structure of the game UI
CSS Styling and layout
JavaScript Game logic and interactions

▶️ How to Play

  1. Clone the repository:

    git clone https://github.com/letDiyaCode/Tic-Tac-Toe
  2. Open index.html in any modern web browser.

  3. Player 1 plays as ⭕ and Player 2 plays as ❌.

  4. Players take turns clicking on empty squares to place their mark.

  5. The game automatically announces the winner or declares a draw.

  6. Click New Game to reset the board and start a new match.

About

A simple Tic Tac Toe game built with HTML, CSS, and JavaScript to practice game logic and DOM manipulation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published