Cricket-Tournament-Simulation

This is a simple web application that simulates a cricket match using Python and Flask. It allows you to start a match between two teams and see the result.

Getting Started

Prerequisites

  • Python 3.x
  • Flask (can be installed via pip install flask)

Installation

  1. Clone the repository or download the source code.

  2. Open a terminal or command prompt and navigate to the project directory.

  3. Install the required dependencies by running the following command: pip install -r requirements.txt

Usage

  1. Start the Flask server by running the following command: python app.py

  2. Open your web browser and visit http://localhost:5000 to access the application.

  3. Click the "Start Match" button to initiate the cricket match simulation.

  4. Observe the match commentary and score updates in the console or browser's developer console.

  5. The result of the match will be displayed once the simulation is complete.

File Structure

  • app.py: The main Flask application file.
  • templates: The template contains HTML, css for style and Javascript for handling user interactions for the web application.

Customization

You can customize the players, teams, field conditions, and match parameters by modifying the app.py file. The provided example includes a basic setup with predefined players and teams.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please create a pull request or submit an issue on the project's GitHub repository.