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.
- Python 3.x
- Flask (can be installed via
pip install flask
)
-
Clone the repository or download the source code.
-
Open a terminal or command prompt and navigate to the project directory.
-
Install the required dependencies by running the following command: pip install -r requirements.txt
-
Start the Flask server by running the following command: python app.py
-
Open your web browser and visit
http://localhost:5000
to access the application. -
Click the "Start Match" button to initiate the cricket match simulation.
-
Observe the match commentary and score updates in the console or browser's developer console.
-
The result of the match will be displayed once the simulation is complete.
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.
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.
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.