Skip to content

The tic-tac-toe game is for two players. One player plays X and the other plays O. The players take turns placing their marks on a grid of three-by-three cells. If a given player gets three marks in a row horizontally, vertically, or diagonally, then that player wins the game.

Notifications You must be signed in to change notification settings

LakshayD02/Tic_Tac_Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Tic-Tac-Toe

This is a simple yet engaging Tic-Tac-Toe game built using HTML, CSS, and JavaScript ๐ŸŽฎ. It allows two players to compete against each other in a classic 3x3 grid. The game offers a user-friendly interface with smooth interactions and instant feedback on moves โฑ๏ธ.

Key Features:

  • Two-Player Mode โ€“ Players take turns marking 'X' โŒ and 'O' โญ• on the grid.
  • Win Detection โ€“ Automatically checks for winning conditions ๐Ÿ† and announces the winner ๐ŸŽ‰.
  • Draw Detection โ€“ If all boxes are filled with no winner, the game declares a tie ๐Ÿค.
  • Restart Button โ€“ Allows players to reset the board ๐Ÿ”„ and play again.
  • Responsive Design โ€“ Works seamlessly across different screen sizes ๐Ÿ“ฑ๐Ÿ’ป.

Demo

Check out the live demo of the game here: Tic-Tac-Toe Game Demo ๐Ÿš€

Installation

To run the Tic-Tac-Toe game on your local machine, follow these steps:

  1. Clone this repository to your local machine:

    git clone https://github.com/your-username/tic-tac-toe.git
  2. Navigate to the project directory:

    cd tic-tac-toe
  3. Open the index.html file in your browser to play the game.

About

The tic-tac-toe game is for two players. One player plays X and the other plays O. The players take turns placing their marks on a grid of three-by-three cells. If a given player gets three marks in a row horizontally, vertically, or diagonally, then that player wins the game.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published