Skip to content

hemel17/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Awesome Tic-Tac-Toe Game

Welcome to the Awesome Tic-Tac-Toe Game! This is a simple and fun Tic-Tac-Toe implementation using HTML, CSS, and JavaScript. Challenge your friends and see if you can emerge victorious!

Table of Contents

Introduction

Tic-Tac-Toe, also known as Noughts and Crosses, is a classic paper-and-pencil game for two players, where one player uses "X" marks and the other "O" marks on a 3x3 grid. The players take turns to place their marks in an attempt to form a horizontal, vertical, or diagonal line of three marks before the opponent does.

This project is a digital version of the game, built using basic web technologies like HTML, CSS, and JavaScript. It offers an interactive and user-friendly interface, allowing players to enjoy the game conveniently in their web browsers.

Demo

You can try out the live version of the game here.

Features

  • Player vs. Player: Challenge a friend and compete against each other.
  • Responsive Design: Play the game on various devices, including desktops, tablets, and smartphones.
  • Interactive UI: Enjoy a smooth and visually appealing interface.

How to Play

  1. Open the game using the demo link or run it on your local machine after following the installation instructions.
  2. Choose the Player vs. Player mode to play against a friend.
  3. The game starts with an empty 3x3 grid. Players take turns to place their marks on any available cell.
  4. The objective is to form a horizontal, vertical, or diagonal line of three of your marks before the opponent does.
  5. The game will end when one player achieves a winning combination or if the entire board is filled without a winner, resulting in a draw.
  6. If you want to play again, simply refresh the page or click the "Restart" button.

Installation

To run the game locally on your machine, follow these steps:

  1. Clone this repository to your local machine using:
git clone https://github.com/Hemel17/tic-tac-toe.git
  1. Navigate to the project directory:
cd tic-tac-toe
  1. Open the index.html file in your preferred web browser.

  2. Enjoy playing Tic-Tac-Toe!

Contributing

Contributions to this project are welcome! If you find any issues or want to add new features, feel free to open an issue or submit a pull request. Please make sure to follow the existing code style and guidelines.

License

This project is licensed under the MIT License.


Have fun playing Tic-Tac-Toe! If you encounter any problems or have suggestions for improvements, please don't hesitate to open an issue. Enjoy!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published