Skip to content

HemanthDas/tic-tak-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

A simple web-based Tic-Tac-Toe game implemented in HTML, CSS, and JavaScript.

Overview

This project is a classic Tic-Tac-Toe game where two players take turns to mark X or O on a 3x3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.

Features

  • Responsive design: Play the game on various devices.
  • Two-player mode: Enjoy the game with a friend.
  • Clear winner indication: The winner is clearly displayed after the game ends.
  • Restart functionality: Start a new game with the click of a button.

How to Play

  1. Open index.html in a web browser.
  2. Enter the names of Player 1 and Player 2.
  3. Click the "Start" button to begin the game.
  4. Players take turns marking X or O on the grid.
  5. The game announces the winner or declares a draw.
  6. Click the "Restart" button to play again.

Technologies Used

  • HTML
  • CSS
  • JavaScript

How to Run Locally

Clone the repository:

git clone https://github.com/HemanthDas/tic-tac-toe.git

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published