Skip to content

curiousbud/Tic-Tac-Toe-game-with-HTML-CSS-and-JavaScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

image

Description

This is a simple Tic-Tac-Toe game implemented using HTML, CSS, and JavaScript. The game features a clean and modern interface, allowing two players to compete against each other on the same device. The game keeps track of wins, losses, and ties for each player.

Features

  • Two-player gameplay
  • Score tracking for both players (wins, losses, ties)
  • Reset button to restart the game
  • Modern and responsive design

Screenshot

image

Installation

To run this game locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/curiousbud/Tic-Tac-Toe-game-with-HTML-CSS-and-JavaScript.git
  2. Navigate to the project directory:

    cd Tic-Tac-Toe-game-with-HTML-CSS-and-JavaScript
  3. Open the index.html file in your web browser to start the game.

Usage

  1. Open the index.html file in your web browser.
  2. The game will display an empty Tic-Tac-Toe grid.
  3. Player 1 starts with "O" and Player 2 with "X".
  4. Players take turns clicking on the grid to place their marks.
  5. The game will automatically detect and display the winner or if the game ends in a tie.
  6. Use the "Reset" button to start a new game.

Contributing

Contributions are welcome! If you have any suggestions or improvements, please create a pull request or open an issue.

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

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

If you have any questions or feedback, feel free to contact me.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published