The Cricket Scorecard Maintainer is a simple C++ application designed to maintain a cricket scorecard for a match. It allows users to record the runs scored off each ball by the batting team, calculates the total runs for both innings, and declares the winner of the match. Additionally, it includes a coin toss feature for deciding which team bats first.
The Cricket Scorecard Maintainer provides a basic framework for tracking the progress of a cricket match. It enables users to input runs scored off each ball and maintains a cumulative total for each innings. The application also includes a coin toss feature to determine the batting order.
To use the Cricket Scorecard Maintainer, follow these steps:
-
Clone the repository from https://github.com/Darsh-Turakhia/Cricket to your local machine.
-
Navigate to the directory containing the
cricket.cpp
file. -
Open a terminal or command prompt in the same location.
-
Compile the C++ source file using a C++ compiler (e.g., g++):
g++ cricket.cpp -o cricket
-
Run the compiled executable:
./cricket
-
Follow the on-screen prompts to input the runs scored off each ball by the batting team.
-
The application will calculate the total runs for each inning and declare the winner of the match.
- Score Tracking: Record runs scored off each ball by the batting team and maintain a cumulative total for each inning.
- Coin Toss: Includes a coin toss feature to decide which team bats first.
- Match Result: Declares the winner of the match based on the total runs scored by both teams.
To customize the application, you can modify the source code in the cricket.cpp
file. You can add additional features, improve the user interface, or implement more advanced scoring mechanisms as per your requirements.
Contributions to the Cricket Scorecard Maintainer are welcome! If you have any ideas for improvements or new features, feel free to submit a pull request.
Enjoy using the Cricket Scorecard Maintainer to keep track of cricket matches and determine the winner based on the total runs scored by each team!