THE HUNDRED
INTRODUCTION
It's a 100 ball innings simulator. This simulator is available in 2 versions. The first one you can generally set up your squads and run the sim, such that the simulation is completely carried on by the simulator without your interaction with it. The second comes up with manual bowling options. The simmer can choose who should bowl the next10 balls or 5 balls in the spell. You have the feasibility to add more commentary lines of your choice to the text files inside the commentary folder. By default, this simulator comes up with 5 pitch types namely Flat, Hard, Dry, Normal, Green, and Dusty.
TEAMS CREATION
In the downloaded folder, you have been given a template and 2 others teams' data which is configured and used for other leagues. You can use that template in creating new squads and matching data for reference.
The CSV file name will be your team name. Make a copy of the template and rename it with your team name.
The first column is 'player' where you can your player name.
The second column is in 'role', at present, there are 3 roles. 'Batsman', 'Bowler', and 'Keeper'. Even mark allrounder as bowler. Everything is case-sensitive in this excel sheet. So be careful while you are editing.
The third col is just for user reference, you can type in your note like players auction price or anything such that it will be easy for you to rate them. You can even leave it empty but make sure you don't delete that column.
The columns 0s to no-ball are actual ratings for the particular player. Based on players' real-time performance you can rate them. How many dot balls he will be playing, how many 1s and 2s he will take. Make sure you don't set 'leg bye', 'wide', and 'no ball' greater than 2 or 3.
The last columns 'bowling_action' has two categories either a bowler is 'spin' or 'fast'. Col 'bowling_points' determine his performance. Don't rate bowlers greater than 90.
For auto simulation - min 6 bowlers are required.
For manual simulation - min 5 bowlers are required.
SIMULATION
Go to The Hundred folder and open cmd/terminal at that location.
In cmd type 'python the 100_auto.py' for auto version or 'python the 100_manual.py' for the manual version. Hit enter.
Now you will be displayed with the available teams.
Enter the index no of team1 and team 2 from the displayed list you want.
Type your pitch type from the given display.
The match will be simulated and the output will be stored in 'team 1 vs team 2 - timestr' folder.
If the simulation is successful you will find 5 files in the above folder.
For Manual version - Follow the same steps as above, but at the end of every 5 and 10 balls, you will be shown the player names and no fo balls they bowled. So choose whom you to want to bowl next by entering the number shown next to the bowler's name.
STATS CALCULATION
After every match simulation, 4 CSV files are stored in a particular match folder.
Separate batsmen and bowler data to any new folder.
Open cmd from The Hundred folder and type 'python cricket_stats.py'.
A GUI application will be opened and you have to choose batsmen and bowler's CSV files there.
Click compute, the output will be stored in the stats-calculator folder in the form of CSV and text files.