GithubHelp home page GithubHelp logo

mraaghav / dream-11-team-possibilities Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pushkar-singh-14/dream-11-team-possibilities

0.0 0.0 0.0 11 KB

Dream 11 cricket team total possibilities. Based on points and other rules.

Python 100.00%

dream-11-team-possibilities's Introduction

Dream 11 / MyTeam 11 total team combination considering the points and other rules.

This is a fun project which create a list of all the team combinations. It absolutely take care of all the rules that they have. I created it considering the rules of Dream 11 app only and assuming that MyTeam 11 has the same rules too.


Rules

  • Total usable credit is 100, As soon as you have enough credit you can select players.

  • Only one WK is allowed

  • Batsman: Min 3 , Max 5

  • All Rounder (AR): Min 1 , Max 3

  • Bowler: Min 3, Max 5

  • Maximum 7 player from 1 team is allowed

How to input Players

You can refer to the team.txt file and write path here. f = open("/path/to/text/file.txt", "r")

You can create your own text file just make sure the pattern of writing about players

Here is the sample pattern

kock mi 9.5 wk parthiv rcb 8.5 wk kohli rcb 11.0 batsman r_sharma mi 10.5 batsman de_villiers rcb 10.0 batsman s_yadav mi 9.0 batsman Y_singh mi 8.5 batsman h_pandya mi 9.5 AR M_Ali Rcb 8.5 ar bumrah mi 9.5 bowl chahal rcb 9.0 bowl siraj rcb 8.5 bowl hetmyer mi 8.5 batsman shivam_dube mi 8.0 ar grandhomme mi 8.5 ar saini mi 8.0 bowl umesh_yadav mi 9.0 bowl pollard rcb 8.5 batsman k_pandya rcb 8.5 ar mcclenaghan rcb 8.5 bowl malinga rcb 8.5 bowl markande rcb 8.0 bowl

How to view the teams

All the teams are stored in "comb_list_3" list.

Total combinations for above team is: 179798

Sample Output

[['kock', 'mi', '9.5', 'wk'], ['kohli', 'rcb', '11.0', 'batsman'], ['r_sharma', 'mi', '10.5', 'batsman'], ['de_villiers', 'rcb', '10.0', 'batsman'], ['siraj', 'rcb', '8.5', 'bowl'], ['saini', 'mi', '8.0', 'bowl'], ['mcclenaghan', 'rcb', '8.5', 'bowl'], ['malinga', 'rcb', '8.5', 'bowl'], ['markande', 'rcb', '8.0', 'bowl'], ['h_pandya', 'mi', '9.5', 'ar'], ['shivam_dube', 'mi', '8.0', 'ar']]

dream-11-team-possibilities's People

Contributors

pushkar-singh-14 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.