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.
- 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.
-
Clone the repository: Open your terminal and run the following command:
git clone https://github.com/AryaKS01/Score-Keeper.git
-
Navigate to the project directory:
cd Score-Keeper
-
Open the project in VS Code:
code .
-
Run the project locally: Open the
sk.html
file in your browser to play the game.
- 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.
- HTML for structuring the webpage.
- CSS (Bulma framework) for styling the UI.
- JavaScript for the game logic.
Feel free to contribute by opening issues or submitting pull requests to enhance the game!
This project is licensed under the MIT License. See the LICENSE file for more details.