-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mostly tweaks, adjustments, and bug-fixes, but also a new data output system and additions to the custom settings options! The program now outputs a csv file with stats for the games simulated, which can be opened in a spreadsheet. (I've only tested it on Google Sheets, but it should work on Excel etc. as well) Added a ball-by-ball record of high scoring overs. Hattricks taking place in a single over are now noted in the game log. (Although at the moment run outs are also counted as part of hattricks, which they shouldn't be) Added option in settings.txt to control the toss and which team bats first. Added option in settings.txt to pick captains/wicket-keepers. Added option in settings.txt to show bowling changes in the game log. Added description to customteams.txt of how player data lines are constructed. Made on-going improvements to the match report. Made captains more conservative in choosing to enforce the follow-on. Made captains willing to sometimes declare if they are in the 90s. Made adjustments and improvements to the bowler selection algorithm. Made adjustments to 3rd and 4th innings batting aggression. Made lots of adjustments and improvements to the altcricket selection process. Fixed issue where wides would not result in an extra ball in the over. Fixed issue where only four runs were awarded, instead of five, on wides that went to the boundary. Fixed issue with custom/historical automatic team selection that made teams too likely to have five specialist bowlers. Fixed issue with altcricket where Pakistan would not always be treated as the home team for series in the UAE. Fixed issue with altcricket where recovering from injury would reactivate players who shouldn't have been avaliable. Fixed issue in altcricker where the Man of the Match in a series with one game would not always also be the Man of the Series. Fixed issue with header for custom team scorecards. Fixed issue where, if a game was won by the team batting fourth with the very last possible ball of the match, the result would be incorrectly identified.
- Loading branch information
Showing
9 changed files
with
690 additions
and
362 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,40 @@ | ||
active = false | ||
# If this does not read "true" the file will not be read. | ||
# any other setting can be replaced with "default" | ||
# Any paramater set as "default" will be ignored | ||
|
||
pace = default | ||
spin = default | ||
outfield = default | ||
pace = 1 | ||
spin = 1 | ||
outfield = 1 | ||
# Higher numbers are more favorable to batsmen, 1 is average - normal settings range between 0.5 and 1.5 | ||
# Default will generate a ground wthin realistic parameters. | ||
|
||
venue = Lord's | ||
weather = default | ||
# Weather options: the 12 test-playing countries, "Timeless" or "default", which has no weather delays. | ||
|
||
year = default | ||
# Default is 2020 for custom games | ||
overs = default | ||
# Default is 450 | ||
overs = 900 | ||
# Default is 450 for non-Timeless games | ||
# If the "weather" setting is after the overs setting in this file, the overs setting will not work. | ||
|
||
average = default | ||
runrate = default | ||
# Average is runs/wicket, runrate is runs/over. "default" will use year values. Using "default" for runrate currently also sets the average value to default. | ||
|
||
venue = default | ||
weather = default | ||
# Weather options: the 12 test-playing countries, "Timeless" or "default", which has no weather delays. | ||
toss = default | ||
# If the toss setting does not read exactly "home" or "away" it will not work. | ||
choice = default | ||
# If the choice setting does not read exactly "bat" or "bowl" it will not work. | ||
|
||
homecapt = default | ||
homewk = default | ||
awaycapt = default | ||
awaywk = default | ||
# Sets the team's captain / wicket-keeper to a player in the team with exactly the name specified. If multiple players have the name, one is picked at random. | ||
# If no player in the XI has the name provided, the role is picked as normal. | ||
|
||
showbowlingchanges = default | ||
# Shows bowling changes in the game log. | ||
|
||
#The last line of the file cannot be used for settings. |