Skip to content

Tic Tac Toe Classic web-based game using HTML, CSS and JavaScript

Notifications You must be signed in to change notification settings

m7mdgasim/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

Welcome to the Tic-Tac-Toe Game project! This simple web-based game is built using HTML, CSS, and JavaScript, offering an interactive and fun experience for players of all ages. Below, you'll find an overview of the project, installation instructions, and how to play the game.

Project Overview

This project implements the classic Tic-Tac-Toe game in a web browser, utilizing HTML for the structure, CSS for styling, and JavaScript for the game logic. Players take turns clicking on the game board to place their "X" or "O" markers, aiming to create a row, column, or diagonal of their markers to win the game.

Installation

  1. Clone the repository: Begin by cloning this repository to your local machine using the following command:

    git clone https://github.com/m7mdgasim/tic-tac-toe.git
    
  2. Navigate to the project directory: Move into the project directory using the cd command:

    cd tic-tac-toe
    
  3. Open the game: To start playing the game, simply open the index.html file in a web browser of your choice.

How to Play

  1. Launch the Game: Open the index.html file in a web browser to load the game board. After that edit the players names if you wanted to and click "Start The Game".

  2. Game Rules: Two players take turns clicking on the empty cells of the 3x3 grid. One player represents "X" and the other "O."

  3. Winning Condition: The first player to get three of their markers consecutively in a row, column, or diagonal wins the game.

  4. Restarting the Game: After a game ends (either in a win or a draw), you can click the "Restart" button to start a new game.

  5. Have Fun: Enjoy the classic game and challenge your friends to see who's the ultimate Tic-Tac-Toe champion!

Customization

Feel free to customize the game's appearance and behavior by modifying the CSS and JavaScript files. You can change colors, fonts, animations, and even add additional features if you're up for the challenge.

Acknowledgments

This project was inspired by the classic Tic-Tac-Toe game and built as a learning exercise in web development.

Contact

If you have any questions, suggestions, or feedback, feel free to reach out to me at [email protected].

I hope you have a fantastic time playing the Tic-Tac-Toe game!

Happy Gaming!

About

Tic Tac Toe Classic web-based game using HTML, CSS and JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published