ronitkp06-proj

Tic Tac Toe Game

A classic 2-player Tic Tac Toe game built with HTML, CSS, and JavaScript, playable directly in the browser.

๐Ÿ”— Live Demo

https://ronitkp06-proj.github.io/tic-tac-toe/ (enable GitHub Pages in repo Settings โ†’ Pages to activate this link)

๐Ÿ“Œ About the Project

This project is a browser-based implementation of the classic Tic Tac Toe game for two players. It focuses on core JavaScript logic โ€” tracking game state, detecting wins/draws, and updating the UI dynamically without any page reloads.

โœจ Features

๐Ÿ› ๏ธ Built With

๐Ÿš€ Getting Started

To run this project locally:

# Clone the repository
git clone https://github.com/ronitkp06-proj/tic-tac-toe.git

# Navigate into the project folder
cd tic-tac-toe

# Open index.html in your browser

No additional installation or dependencies are required to play.

๐Ÿ“‚ Project Structure

tic-tac-toe/
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ style.css
โ”œโ”€โ”€ script.js
โ””โ”€โ”€ README.md

๐ŸŽฎ How to Play

  1. Player X always goes first
  2. Click any empty cell to place your mark
  3. Players alternate turns until one player gets 3 in a row (horizontally, vertically, or diagonally), or the board fills up in a draw
  4. Click โ€œRestartโ€ to play again

๐Ÿ“ธ Screenshots

(Add a screenshot or GIF of your project here so visitors can see it without running it)

๐ŸŽฏ What I Learned

๐Ÿ‘ค Author

Ronit