Skip to content

A simple web-based Tic Tac Toe game built with HTML, CSS, and JavaScript. Features two-player mode, real-time updates, win detection, and responsive design for desktop and mobile devices.

License

Notifications You must be signed in to change notification settings

Paarth01/Web-Based-Tic-Tac-Toe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Game

A simple web-based Tic Tac Toe game where two players can play against each other on a 3x3 grid. The game is built using HTML, CSS, and JavaScript.

Features

  • Two Player Mode: Play with a friend on the same device.
  • Real-time Updates: Instantly shows the result of each move.
  • Win Detection: Automatically detects and announces the winner or if it's a draw.
  • Reset Button: Easily restart the game after it finishes.
  • Responsive Design: Works well on both desktop and mobile devices.

How to Play

  1. Player 1 is X and Player 2 is O.
  2. Players take turns to mark an empty cell in the 3x3 grid.
  3. The first player to align three marks either horizontally, vertically, or diagonally wins the game.
  4. If all cells are filled without a winning combination, the game ends in a draw.

Getting Started

Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You'll need a web browser to run the game. No additional installations are required.

About

A simple web-based Tic Tac Toe game built with HTML, CSS, and JavaScript. Features two-player mode, real-time updates, win detection, and responsive design for desktop and mobile devices.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published