An open API service indexing awesome lists of open source software.

https://github.com/sumitgirwal/advancedcrickettournament

Advanced Cricket Tournament Simulation Program using Python
https://github.com/sumitgirwal/advancedcrickettournament

python3 random-module scripting

Last synced: about 1 year ago
JSON representation

Advanced Cricket Tournament Simulation Program using Python

Awesome Lists containing this project

README

          

# Advanced Cricket Tournament Simulation

This is a Python program that simulates a cricket tournament involving various teams with advanced level detail. The program mimics real-world cricket matches and statistics.

Live Demo : https://youtu.be/yANF-I6_5gI

## Program Overview

The program consists of the following key classes:

- `Player`: Represents a player in a cricket team, with attributes such as name, bowling, batting, fielding, running, and experience.
- `Team`: Represents a cricket team, with methods for selecting a captain, sending the next player to the field, choosing a bowler, and managing the batting order.
- `Field`: Represents the field conditions, including size, fan ratio, pitch conditions, and home advantage.
- `Umpire`: Handles the umpiring and scoring of the match, predicting the outcome of a ball based on player stats.
- `Commentator`: Provides commentary for each ball and over, generating descriptions of game events.
- `Match`: Simulates an individual cricket match, using objects of the above classes to start, change innings, and end the match.

## Installation and Usage

1. Clone the repository:
```bash
git clone https://github.com/sumitgirwal/AdvancedCricketTournament
```

2. Navigate to the project directory:
```bash
cd AdvancedCricketTournament
```

3. Run the `main.py` file to start the simulation:
```bash
python main.py
```

4. Follow the instructions and prompts to run the cricket tournament simulation.