Skip to content

Advanced Cricket Tournament Simulation Program using Python

Notifications You must be signed in to change notification settings

sumitgirwal/AdvancedCricketTournament

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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:
git clone https://github.com/sumitgirwal/AdvancedCricketTournament
  1. Navigate to the project directory:
cd AdvancedCricketTournament
  1. Run the main.py file to start the simulation:
python main.py
  1. Follow the instructions and prompts to run the cricket tournament simulation.

About

Advanced Cricket Tournament Simulation Program using Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages