Skip to content

HimanshuChelani27/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

This is a simple Tic Tac Toe game built using HTML, CSS, and JavaScript. Players take turns placing "X" and "O" in a 3x3 grid, with the goal of getting three in a row.

Features

  • Two-player game ("X" and "O")
  • Game status display
  • Winning and draw detection
  • Restart game functionality
  • Interactive UI with styling

Technologies Used

  • HTML
  • CSS
  • JavaScript

How to Play

  1. Open the index.html file in a web browser.
  2. The game starts with player "X".
  3. Click on an empty cell to make a move.
  4. The game alternates between "X" and "O".
  5. The game announces a winner if a player gets three in a row.
  6. If all cells are filled without a winner, the game ends in a draw.
  7. Click the "Restart Game" button to reset and play again.

File Structure

/tic-tac-toe
│-- index.html      # HTML structure of the game
│-- index.css       # CSS for styling the game
│-- index.js        # JavaScript logic for the game
│-- README.md       # Project documentation

Installation & Usage

  1. Clone the repository or download the files.
git clone https://github.com/HimanshuChelani27/tic-tac-toe.git
  1. Open index.html in a web browser.
  2. Play the game!

Future Enhancements

  • Add AI opponent mode
  • Improve UI/UX with animations
  • Mobile responsiveness

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors