Skip to content

Welcome to the Tic-Tac-Toe Game! This interactive and classic game is implemented using HTML, CSS, and JavaScript. Challenge a friend and take turns marking the spaces in a 3x3 grid. The first player to get three in a row wins!

Notifications You must be signed in to change notification settings

rohityadav-sas/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

Tic-Tac-Toe game built using HTML, CSS, and JavaScript. Play against a friend and see who can achieve three in a row first!

Table of Contents

Preview

preview.png

Features

  • Interactive and responsive design
  • Score counter to keep track of wins for X and 0
  • Vibrant and engaging user interface
  • Restart button to begin a new game

How to Play

  1. Open the [Tic-Tac-Toe] game in your web browser.
  2. The game starts with X's turn.
  3. Hover over a cell to see the current player's symbol.
  4. Click on an empty cell to make a move.
  5. The game alternates between X and 0.
  6. The first player to get three in a row (horizontally, vertically, or diagonally) wins.
  7. Click the "Restart" button to start a new game.

Installation

  1. git clone https://github.com/rohityadav-sas/Tic-Tac-Toe
  2. cd tic-tac-toe
  3. Open index.html in your browser

Alternatively, you can download the ZIP file of the repository and extract it.

Contributing

If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository
  2. Create a new branch
    git checkout -b feature/new-feature
  3. Make changes and commit them
    git commit -am 'Add new feature'
  4. Push to the branch
    git push origin feature/new-feature
  5. Create a pull request

License

This project is licensed under the MIT License.

About

Welcome to the Tic-Tac-Toe Game! This interactive and classic game is implemented using HTML, CSS, and JavaScript. Challenge a friend and take turns marking the spaces in a 3x3 grid. The first player to get three in a row wins!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published