Skip to content

Latest commit

 

History

History

Tic-tac-toe-Game

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Tic-Tac-Toe Game

A simple Tic-Tac-Toe game built with HTML, CSS, and JavaScript. Two players (O and X) can compete in a 3x3 grid to win by completing a row, column, or diagonal with their symbols.

Features

  • Two-player game (O vs. X).
  • Tracks wins or declares a draw.
  • Reset button to start a new game.
  • Responsive design for all screen sizes.

How to Play

  1. Player O starts first.
  2. Players take turns clicking a box to place their mark.
  3. Win by getting three in a row, column, or diagonal.
  4. If all boxes are filled with no winner, the game declares a draw.
  5. Use the "Reset Game" button to restart at any time.

Installation

  1. Clone the repository:

    git clone https://github.com/subodh-06/Games-using-javascript.git