Skip to content

ansarirayyan01/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Web Application

This is a simple web application that allows users to play the classic game of Tic Tac Toe against another player.

Features

  • Two Player Mode: Play against another player locally.
  • Responsive Design: Works well on various screen sizes, from desktop to mobile devices.
  • Win Detection: Automatically detects winning combinations and declares a winner.
  • Draw Detection: Detects when the game ends in a draw.
  • Restart Option: Option to restart the game after completion.

Technologies Used

  • HTML
  • CSS
  • JavaScript

How to Play

  1. You will see the Tic Tac Toe board.
  2. Players take turns marking spaces on the grid with their respective symbols (X or O).
  3. The first player to get three of their symbols in a row (horizontally, vertically, or diagonally) wins the game.
  4. If all spaces on the grid are filled and no player has achieved a winning combination, the game ends in a draw.
  5. After the game ends, you have the option to restart and play again.

Demo

You can see a live demo of the Tic Tac Toe web application here.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.