Skip to content

A responsive Tic Tac Toe game implemented with HTML, CSS, and JavaScript, featuring both player vs player and player vs computer modes.

Notifications You must be signed in to change notification settings

tal6203/Tic-Tac-Toe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

🎮 Tic-Tac-Toe Game

Welcome to the Tic-Tac-Toe Game repository! This project is a simple implementation of the classic Tic-Tac-Toe game using HTML, CSS, and JavaScript.

Table of Contents

📝 Overview

This project is a web-based Tic-Tac-Toe game where two players can play against each other. The game has a simple and intuitive interface, making it easy for anyone to play.

✨ Features

  • Two Player Mode: Play against another player on the same device.
  • Responsive Design: The game is responsive and works on different screen sizes.
  • Simple UI: Easy to use interface with a clean design.

🔧 Setup

To run the Tic-Tac-Toe game locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/tal6203/Tic-Tac-Toe-Game.git
    cd Tic-Tac-Toe-Game/hw13/tic-tac-toe game
  2. Open the tictacgame.html file: Open tictacgame.html in your preferred web browser to start the game.

🎮 How to Play

  1. Open the game in your web browser.
  2. Player 1 starts by clicking on an empty cell to place their mark (X).
  3. Player 2 then clicks on an empty cell to place their mark (O).
  4. Players take turns until one player gets three of their marks in a row (horizontally, vertically, or diagonally) or all cells are filled without a winner, resulting in a draw.
  5. The game automatically resets after a win or draw, allowing you to play again.

🚀 Deployment

You can play the game online via the following link: Tic-Tac-Toe Game

🤝 Contributing

Contributions are welcome! If you would like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes and commit them (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature-branch).
  5. Open a Pull Request.

📜 License

This project is open-source and available under the MIT License.

Tic-Tac-Toe.mp4

About

A responsive Tic Tac Toe game implemented with HTML, CSS, and JavaScript, featuring both player vs player and player vs computer modes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published