Skip to content

RawHit02/Fantasy_Cricket_PY

Repository files navigation

Fantasy Cricket Game in Python

ScreenShorts

image image image image

Internshala

image

Table of Contents

  1. Introduction
  2. Features
  3. Requirements
  4. Installation
  5. Usage
  6. How to Play
  7. Team Selection
  8. Points Calculation
  9. Contributing
  10. License

Introduction

Welcome to the Fantasy Cricket Game in Python! This is a command-line based fantasy cricket game where users can create their own teams and evaluate their performance based on real-life cricket matches.

Features

  • Create and manage multiple teams.
  • Select players from a predefined list of cricket players.
  • Points are calculated based on the actual performance of selected players in real-life matches.
  • Compare your team's performance with others.

Requirements

  • Python 3.6+
  • External libraries: random, json

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/yourusername/fantasy-cricket.git
  2. Navigate to the project directory:

    cd fantasy-cricket
  3. Run the game:

    python main.py

Usage

Follow the instructions displayed in the console to interact with the game.

How to Play

Team Selection

  1. Start the game by creating a new team.
  2. Choose players for your team from the available pool of cricket players.
  3. Manage your team by adding, removing, or substituting players.
  4. now save the team and make another team same method.
  5. Evaluate both the Teams for match1 and you can compare the points of both the team and see the result of both the teams

Points Calculation

Points are calculated based on the performance of selected players in real-life matches. The points system is as follows:

  • 1 point for each run scored
  • 10 points for each wicket taken
  • 5 points for each catch taken
  • 20 points for a half-century
  • 50 points for a century
  • Additional points for boundaries and sixes

Contributing

If you would like to contribute to this project, please follow the guidelines outlined in CONTRIBUTING.md.

License

This project is licensed under the MIT License.

Releases

No releases published

Packages

No packages published

Languages