Skip to content

AryaKS01/Score-Keeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Ping Pong Score Keeper

Project Description

This is a small JavaScript-based scorekeeper project simulating a ping pong game. Two players compete to reach a predefined score first, and the game keeps track of their progress. The first player to reach the target score wins, and the score display reflects the winner's success with color-coded results.

Features

  • Player 1 and Player 2 buttons to increment the score.
  • Dropdown to set the winning score (between 3 and 11).
  • The game disables buttons once a player wins, highlighting the winner in green and the loser in red.
  • Reset button to start a new game at any point.

Setup Instructions

  1. Clone the repository: Open your terminal and run the following command:

    git clone https://github.com/AryaKS01/Score-Keeper.git
  2. Navigate to the project directory:

    cd Score-Keeper
  3. Open the project in VS Code:

    code .
  4. Run the project locally: Open the sk.html file in your browser to play the game.

Usage Example

  • Open the HTML file in your browser.
  • Choose a score limit (e.g., 5).
  • Click the Player One or Player Two buttons to increment their scores.
  • The first player to reach the chosen score wins, and their score is highlighted in green.
  • Press "Reset" to restart the game at any time.

Technologies Used

  • HTML for structuring the webpage.
  • CSS (Bulma framework) for styling the UI.
  • JavaScript for the game logic.

Contributing

Feel free to contribute by opening issues or submitting pull requests to enhance the game!

License

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published