Skip to content

DanielVeza/cricket

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cricket

Test match cricket simulator Python program takes user inputs for years and teams and simulates a Test match, then outputs a scorecard.txt file.

How to run:

download all the files in the /cricket branch.

direct your command line to the folder where the files were downloaded

to play a single game:

type python3 cricket.py and follow the instructions on-screen

if this doesn't work, you may need to download python from https://www.python.org/

to sim a series of games between two teams:

type python3 series.py for historical (including all-time) teams

type python3 customseries.py for custom teams

to simulate a league between a series of teams:

type python3 league.py for historical (including all-time) teams

type python3 customleague.py for custom teams

to set up a tournament betweeen teams that will be drafted:

type python3 draft.py

if you downloaded a previous version of the sim, you need to redownload all the files in the branch, as the data files have changed.

About

Test match cricket simulator

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%