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
- Host: GitHub
- URL: https://github.com/sumitgirwal/advancedcrickettournament
- Owner: sumitgirwal
- Created: 2023-07-07T06:32:38.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-07T17:50:03.000Z (almost 3 years ago)
- Last Synced: 2025-01-25T08:47:03.058Z (over 1 year ago)
- Topics: python3, random-module, scripting
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.