Skip to content

Miltonbhowmick/cricket-dls-method

Repository files navigation

Cricket Duckworth–Lewis–Stern Method

A DLS calculator for cricket lovers 🏏 (demo)

GitHub Repo stars

Table of Contents

About

The Duckworth-Lewis-Stern (DLS) method is a complex mathematical model used in cricket to calculate revised target scores in rain-affected matches. This project simplifies the process by providing an easy-to-use web interface for cricket enthusiasts and professionals.

Features

  • Calculate revised target scores based on DLS method parameters.
  • Intuitive and user-friendly interface.
  • Supports various input formats for match details.
  • Mobile-responsive design for on-the-go calculations.

Getting Started

Follow these instructions to get the project up and running on your local machine.

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js
  • Yarn

Installation

  1. Clone the repository: git clone https://github.com/Miltonbhowmick/cricket-dls-method.git
  2. Navigate to the project directory: cd cricket-dls-calculator
  3. Install dependencies using Yarn: yarn install
  4. Start the development server: yarn dev
  5. Open your web browser and access the application at http://localhost:3000.

Usage

  • Launch the application using the provided URL.
  • Enter the match details, such as current score, wickets, and overs.
  • Specify any interruptions or rain-affected periods.
  • The application will calculate the revised target score based on the DLS method and display the result.

Contributing

Welcome, you contributions from the community! If you'd like to contribute to the project, please follow these steps:

  • Fork the repository on GitHub.
  • Create a new branch: git checkout -b feature/your-feature-name
  • Commit your changes: git commit -m 'Add some feature'
  • Push to the branch: git push origin feature/your-feature-name
  • Open a pull request on the original repository.

License

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