Skip to content

Darsh-Turakhia/Cricket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Cricket Scorecard Maintainer (C++)

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.

Overview

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.

Usage

To use the Cricket Scorecard Maintainer, follow these steps:

  1. Clone the repository from https://github.com/Darsh-Turakhia/Cricket to your local machine.

  2. Navigate to the directory containing the cricket.cpp file.

  3. Open a terminal or command prompt in the same location.

  4. Compile the C++ source file using a C++ compiler (e.g., g++):

    g++ cricket.cpp -o cricket
    
  5. Run the compiled executable:

    ./cricket
    
  6. Follow the on-screen prompts to input the runs scored off each ball by the batting team.

  7. The application will calculate the total runs for each inning and declare the winner of the match.

Features

  • 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.

Customization

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.

Contributing

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!

About

A simple cricket scorecard maintainer in c++.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages