Skip to content

Commit

Permalink
Version 2.3
Browse files Browse the repository at this point in the history
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
Jamee999 authored May 10, 2020
1 parent e1f8f47 commit 90bba30
Show file tree
Hide file tree
Showing 9 changed files with 690 additions and 362 deletions.
441 changes: 290 additions & 151 deletions altcricket.py

Large diffs are not rendered by default.

352 changes: 240 additions & 112 deletions callcricketnew.py

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion customleague.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from custom import getcustom
from game import setup, game
from altcricket import seri
from altcricket import seri, statsdump
import os

def league (t, n):
Expand Down Expand Up @@ -73,6 +73,8 @@ def league (t, n):
print ('Man of the series: {} ({})'.format(s.players[0].name, s.players[0].team))
print ()

statsdump (s.players, s.inns, s.bowls, folder)


def teamnumber ():
n = 0
Expand Down
127 changes: 83 additions & 44 deletions customteams.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,31 @@ The Bradman XI
["AR Caddick", 10.37, 29.91, "Fast", 1993, 2003, 0.6871508379888268, 1.0944733189224465, 0, ]
["PCR Tufnell", 5.47, 38.3, "Spin", 1990, 2001, 0.5, 0.8781930792222599, 0, ]

Colors
["WA Brown", 43.36, 100.0, "OpenBat", 1934, 1948, 1.0, 1.2, 1, ]
["CG Greenidge", 44.99, 49.15, "OpenBat", 1974, 1991, 1.0, 0.8, 1, ]
["IR Redpath", 41.94, 52.66, "OpenBat", 1964, 1976, 1.0, 1.2, 0, ]
["GC White", 33.71, 47.71, "PartSpin", 1906, 1912, 1.0, 1.2, 0, ]
["JT Brown", 33.45, 60.66, "Bat", 1894, 1899, 1.0, 1.2, 0, ]
["CL White", 24.04, 64.55, "PartSpin", 2008, 2008, 0.8848484848484849, 1.1674347158218126, 0, ]
["JM Blackham", 26.42, 100.0, "WK", 1877, 1894, 1.0, 1.2, 8, ]
["ID Blackwell", 23.58, 53.16, "PartSpin", 2006, 2006, 1.0, 1.190077103586993, 0, ]
["FR Brown", 21.61, 29.75, "Spin", 1931, 1953, 1.0, 1.0210341805433831, 15, ]
["CO Browne", 16.29, 100.0, "WK", 1995, 2005, 0.8004136504653567, 1.2, 0, ]
["JC White", 14.65, 29.71, "Spin", 1921, 1931, 1.0, 0.8, 4, ]
Super Stars
["DL Haynes", 41.32, 100.0, "OpenBat", 1978, 1994, 1.0, 0.9732360097323599, 4, ]
["CH Gayle", 38.79, 46.07, "OpenPartSpin", 2000, 2014, 1.2053467000835423, 0.8359624620702127, 20, ]
["IVA Richards", 50.54, 68.97, "PartSpin", 1974, 1991, 1.0, 0.8568810808452465, 50, ]
["SR Tendulkar", 52.49, 72.29, "Bat", 1989, 2013, 1.0, 1.191356450790413, 25, ]
["Shahid Afridi", 34.47, 39.31, "OpenSpin", 1998, 2010, 1.7394830207805372, 1.049148526035336, 1, ]
["NJ Astle", 36.13, 47.02, "PartMed", 1996, 2006, 0.9920877729718325, 0.8, 0, ]
["L Klusener", 32.46, 40.24, "Fast", 1996, 2004, 1.1961091935989958, 0.9049211239758848, 0, ]
["RC Russell", 27.36, 100.0, "WK", 1988, 1998, 0.7172022684310019, 1.2, 0, ]
["GL Jessop", 26.95, 37.84, "PartFast", 1899, 1912, 1.0, 1.0362997658079627, 0, ]
["B Lee", 19.02, 29.09, "Fast", 1999, 2008, 1.0595107703541438, 1.1332244469985684, 0, ]
["Shoaib Akhtar", 9.75, 27.65, "Fast", 1997, 2007, 0.8286367098248286, 1.1271761411919134, 0, ]

Asian All-Stars
["SM Gavaskar", 51.28, 100.0, "OpenBat", 1971, 1987, 1.0, 1.2, 47, ]
["ST Jayasuriya", 39.7, 37.98, "OpenPartSpin", 1991, 2007, 1.0, 0.8564362481680509, 38, ]
["SR Tendulkar", 52.49, 72.29, "Bat", 1989, 2013, 1.0, 1.191356450790413, 25, ]
["Zaheer Abbas", 44.78, 56.93, "Bat", 1969, 1985, 1.0, 0.8296668761785041, 14, ]
["DPMD Jayawardene", 45.97, 51.18, "Bat", 1997, 2014, 1.029138899777865, 1.0056989607777405, 38, ]
["KC Sangakkara", 52.7, 100.0, "WK", 2000, 2015, 1.0838213442880866, 1.1111111111111112, 15, ]
["Shakib Al Hasan", 36.57, 28.89, "Spin", 2007, 2019, 1.2410025706940875, 0.9624416601640141, 14, ]
["Imran Khan", 37.92, 22.95, "Fast", 1971, 1992, 1.0, 0.9572961079850412, 48, ]
["N Kapil Dev", 30.34, 28.96, "Fast", 1978, 1994, 1.0, 1.015714218051879, 34, ]
["Rashid Khan", 12.8, 30.2, "Spin", 2018, 2019, 1.593984962406015, 1.1405681675655335, 0, ]
["Wasim Akram", 22.78, 23.76, "Fast", 1985, 2002, 1.0, 0.9429442701197686, 25, ]

England
["RJ Burns", 30.77, 100.0, "OpenBat", 2018, 2019, 0.9035532994923858, 1.2, 0, ]
Expand All @@ -62,44 +75,70 @@ England
["BT Foakes", 29.45, 100.0, "WK", 2018, 2019, 1.0761750405186385, 1.2, 0, ]
["CR Woakes", 25.35, 31.16, "Fast", 2013, 2020, 1.005123825789923, 0.9938238847426242, 0, ]
["SCJ Broad", 17.3, 26.42, "Fast", 2007, 2020, 1.2944970772021769, 0.9439592332313885, 0, ]
["MA Wood", 15.84, 33.19, "Fast", 2015, 2020, 1.382716049382716, 1.2, 0, ]
["MJ Leach", 7.82, 32.56, "Spin", 2018, 2019, 0.7942238267148014, 1.050775039745628, 0, ]
["JM Anderson", 8.92, 24.83, "Fast", 2003, 2020, 0.7934382323401407, 0.913471282200057, 0, ]

West Indies
["KC Brathwaite", 31.22, 58.14, "OpenPartSpin", 2011, 2019, 0.8154886867273151, 1.0379957062421519, 5, ]
["JD Campbell", 21.72, 39.45, "OpenBat", 2019, 2019, 1.2339544513457557, 1.08886334764987, 0, ]
["DM Bravo", 34.94, 100.0, "Bat", 2010, 2019, 0.8990896268752404, 0.8, 0, ]
["SSJ Brooks", 22.46, 100.0, "Bat", 2019, 2019, 0.928, 1.2, 0, ]
["RL Chase", 29.73, 40.11, "Spin", 2016, 2019, 0.967741935483871, 1.2, 0, ]
["SO Hetmyer", 25.15, 100.0, "Bat", 2017, 2019, 1.4727592267135325, 1.2, 0, ]
["JO Holder", 31.01, 27.69, "Fast", 2014, 2019, 1.1944619257394589, 0.8273372425050919, 32, ]
["JN Hamilton", 14.93, 100.0, "WK", 2019, 2019, 0.5, 1.2, 0, ]
["RRS Cornwall", 12.45, 31.13, "Spin", 2019, 2019, 1.0, 1.0091821848451044, 0, ]
["KAJ Roach", 11.3, 25.15, "Fast", 2009, 2019, 0.7883082373782108, 1.002085286296417, 0, ]
["ST Gabriel", 4.51, 31.4, "Fast", 2012, 2019, 0.7490636704119851, 1.0902815557359065, 0, ]

ICC World XI
2020 World XI
["DA Warner", 46.38, 100.0, "OpenBat", 2011, 2020, 1.4571055013577392, 1.2, 0, ]
["Babar Azam", 42.74, 100.0, "Bat", 2016, 2020, 1.1381113503537372, 1.2, 0, ]
["MA Agarwal", 44.9, 100.0, "OpenBat", 2018, 2020, 1.1195402298850574, 1.2, 0, ]
["SPD Smith", 58.93, 60.84, "Bat", 2010, 2020, 1.106060606060606, 1.2, 34, ]
["V Kohli", 50.82, 100.0, "Bat", 2011, 2020, 1.1536010197578075, 0.929032258064516, 55, ]
["KS Williamson", 47.82, 48.22, "PartSpin", 2010, 2020, 1.032607829068006, 1.0772156991843156, 32, ]
["JO Holder", 31.01, 27.69, "Fast", 2014, 2019, 1.1944619257394589, 0.8273372425050919, 32, ]
["M Labuschagne", 47.79, 49.56, "PartSpin", 2018, 2020, 1.1305695466873305, 1.2, 0, ]
["BA Stokes", 34.62, 31.87, "Fast", 2013, 2020, 1.174800868935554, 1.0708354849854924, 0, ]
["Q de Kock", 36.92, 100.0, "WK", 2014, 2020, 1.419105199516324, 1.2, 0, ]
["JO Holder", 31.01, 27.69, "Fast", 2014, 2019, 1.1944619257394589, 0.8273372425050919, 32, ]
["R Ashwin", 26.63, 24.1, "Spin", 2011, 2020, 1.0923639689071787, 0.9172450367774215, 0, ]
["PJ Cummins", 16.13, 24.11, "Fast", 2011, 2020, 0.7702380952380953, 0.8934543945112147, 0, ]
["RA Jadeja", 33.42, 23.34, "Spin", 2012, 2020, 1.2753326509723644, 0.8, 0, ]
["TG Southee", 16.1, 26.88, "Fast", 2008, 2020, 1.7169325784868759, 0.9632023642913119, 0, ]
["K Rabada", 10.83, 23.77, "Fast", 2015, 2020, 0.9181818181818182, 1.2, 0, ]

Common Names
["SPD Smith", 58.93, 60.84, "Bat", 2010, 2020, 1.106060606060606, 1.2, 34, ]
["SB Smith", 19.37, 100.0, "OpenBat", 1984, 1984, 1.0, 1.2, 0, ]
["GC Smith", 44.3, 100.0, "OpenBat", 2002, 2014, 1.1935587761674717, 1.1887970985291154, 109, ]
["WA Brown", 43.36, 100.0, "OpenBat", 1934, 1948, 1.0, 1.2, 1, ]
["FR Brown", 21.61, 29.75, "Spin", 1931, 1953, 1.0, 1.0210341805433831, 15, ]
["CO Browne", 16.29, 100.0, "WK", 1995, 2005, 0.8004136504653567, 1.2, 0, ]
["AH Jones", 44.36, 100.0, "Bat", 1987, 1995, 0.785167271261588, 1.2, 0, ]
["DM Jones", 45.34, 72.77, "Bat", 1984, 1992, 0.9777837619496432, 0.8, 0, ]
["AO Jones", 22.24, 66.79, "Bat", 1899, 1909, 1.0, 1.2, 2, ]
["Khan Mohammad", 8.32, 37.4, "Fast", 1952, 1958, 1.0, 1.1110840379133062, 0, ]
["A Khan", 9.39, 48.31, "Fast", 2009, 2009, 1.0, 1.2, 0, ]
["N Wagner", 11.84, 25.21, "Fast", 2012, 2020, 0.897736143637783, 0.9872895478826421, 0, ]

Super Stars
["DL Haynes", 41.32, 100.0, "OpenBat", 1978, 1994, 1.0, 0.9732360097323599, 4, ]
["CH Gayle", 38.79, 46.07, "OpenPartSpin", 2000, 2014, 1.2053467000835423, 0.8359624620702127, 20, ]
["IVA Richards", 50.54, 68.97, "PartSpin", 1974, 1991, 1.0, 0.8568810808452465, 50, ]
2000 World XI
["Saeed Anwar", 46.27, 100.0, "OpenBat", 1990, 2001, 1.1154852030282174, 1.0416666666666667, 7, ]
["JL Langer", 44.72, 100.0, "OpenBat", 1993, 2007, 1.0845546786922209, 1.0273972602739727, 0, ]
["BC Lara", 52.89, 100.0, "Bat", 1990, 2006, 1.2102465448286337, 0.9893992932862191, 47, ]
["SR Tendulkar", 52.49, 72.29, "Bat", 1989, 2013, 1.0, 1.191356450790413, 25, ]
["Shahid Afridi", 34.47, 39.31, "OpenSpin", 1998, 2010, 1.7394830207805372, 1.049148526035336, 1, ]
["NJ Astle", 36.13, 47.02, "PartMed", 1996, 2006, 0.9920877729718325, 0.8, 0, ]
["L Klusener", 32.46, 40.24, "Fast", 1996, 2004, 1.1961091935989958, 0.9049211239758848, 0, ]
["RC Russell", 27.36, 100.0, "WK", 1988, 1998, 0.7172022684310019, 1.2, 0, ]
["GL Jessop", 26.95, 37.84, "PartFast", 1899, 1912, 1.0, 1.0362997658079627, 0, ]
["B Lee", 19.02, 29.09, "Fast", 1999, 2008, 1.0595107703541438, 1.1332244469985684, 0, ]
["Shoaib Akhtar", 9.75, 27.65, "Fast", 1997, 2007, 0.8286367098248286, 1.1271761411919134, 0, ]
["SR Waugh", 51.37, 41.52, "PartMed", 1985, 2004, 0.9729753795467699, 0.9630190437365326, 57, ]
["A Flower", 52.3, 100.0, "WK", 1992, 2002, 0.9014667168108311, 1.2, 20, ]
["CL Cairns", 34.08, 29.88, "Fast", 1989, 2004, 1.1418744625967325, 1.191210686330625, 0, ]
["SM Pollock", 31.28, 22.38, "Fast", 1995, 2008, 1.0505696026674076, 0.8019999046905829, 26, ]
["GD McGrath", 7.28, 21.38, "Fast", 1993, 2007, 0.8165605095541402, 0.8561175474356285, 0, ]
["M Muralitharan", 11.39, 22.18, "Spin", 1992, 2010, 1.4057971014492754, 0.8367890131781228, 0, ]
["AA Donald", 10.84, 22.58, "Fast", 1992, 2002, 0.7025862068965517, 1.0176911132867306, 0, ]

Specialists
["H Sutcliffe", 58.87, 100.0, "OpenBat", 1924, 1935, 1.0, 1.2, 0, ]
["AJ Strauss", 37.56, 100.0, "OpenBat", 2004, 2012, 0.978380257212374, 1.2, 50, ]
["Misbah-ul-Haq", 42.78, 100.0, "Bat", 2001, 2017, 0.8906703053044517, 1.2, 56, ]
["PBH May", 49.9, 100.0, "Bat", 1951, 1961, 1.0, 1.2, 41, ]
["SP Fleming", 39.1, 100.0, "Bat", 1994, 2008, 0.9164324048044978, 1.2, 80, ]
["AM Rahane", 40.64, 100.0, "Bat", 2013, 2020, 1.0007142857142857, 1.2, 2, ]
["IA Healy", 27.56, 100.0, "WK", 1988, 1999, 0.9945205479452055, 1.2, 0, ]
["CA Walsh", 7.55, 24.44, "Fast", 1984, 2001, 0.896551724137931, 0.9255452082294352, 22, ]
["GD McGrath", 7.28, 21.38, "Fast", 1993, 2007, 0.8165605095541402, 0.8561175474356285, 0, ]
["LR Gibbs", 6.76, 28.19, "Spin", 1958, 1976, 1.0, 0.8357493836553616, 0, ]
["CS Martin", 2.18, 31.18, "Fast", 2000, 2013, 0.5, 1.0732570358415354, 0, ]

All-Rounders
["W Rhodes", 35.79, 32.74, "Spin", 1899, 1930, 1.0, 0.8923143725575337, 0, ]
["TL Goddard", 34.01, 25.88, "OpenMed", 1955, 1970, 1.0, 0.8, 13, ]
["Imran Khan", 37.92, 22.95, "Fast", 1971, 1992, 1.0, 0.9572961079850412, 48, ]
["KR Miller", 37.73, 23.45, "Fast", 1946, 1956, 1.0, 0.9825970144748163, 0, ]
["RA Jadeja", 33.42, 23.34, "Spin", 2012, 2020, 1.2753326509723644, 0.8, 0, ]
["IT Botham", 33.12, 28.04, "Fast", 1977, 1992, 1.2142440163455925, 1.1081060432424172, 12, ]
["CL Cairns", 34.08, 29.88, "Fast", 1989, 2004, 1.1418744625967325, 1.191210686330625, 0, ]
["JO Holder", 31.01, 27.69, "Fast", 2014, 2019, 1.1944619257394589, 0.8273372425050919, 32, ]
["SM Pollock", 31.28, 22.38, "Fast", 1995, 2008, 1.0505696026674076, 0.8019999046905829, 26, ]
["N Kapil Dev", 30.34, 28.96, "Fast", 1978, 1994, 1.0, 1.015714218051879, 34, ]
["Hon.A Lyttelton", 24.85, 100.0, "WK", 1880, 1884, 1.0, 1.0894495412844036, 0, ]
1 change: 1 addition & 0 deletions draft.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def userselection (t, p):
c.pop(0)
n += 1

s.sort(key = lambda x: quickorder(x.tag))
print ('List of suggested players:' , end = ' ')
print(listshow([(x.name, x.tag) for x in s]))

Expand Down
82 changes: 40 additions & 42 deletions game.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,61 +18,59 @@ def setup(home, away):
t.saveallcards = True
return t

def firstxi (x):
a, o, b, k, f, s, xi = [], [], [], [], [], [], []
roles = {0:o, 1:b, 2:k, 3:f, 4:s}

def value (p, t, s = False):
x = p.bat
if quickorder(p.tag) == 3: x = x + (60-p.bowl)*3*(t.pitch[1]/t.pitch[0])
elif quickorder (p.tag) == 4:
x = x + (60-p.bowl)*3*(t.pitch[0]/t.pitch[1])
if s == True: x = x*1.5
return x + 10 * random.random()

def firstxi (x, t):
if len(x.squad) == 0: pool = x.active
else: pool = x.squad

for i in pool:
n = quickorder(i.tag)
roles[n].append(i)

k.sort(key = lambda x: x.bat + 5*random.random(), reverse = True)
if len(k) > 0:
xi.append(k[0])
elif len(b) > 0:
z = random.choice(b)
xi.append(z)
b.remove(z)

o.sort(key = lambda x: x.bat+ 5*random.random(), reverse = True)
while len(o) > 0 and len(xi) < 3:
xi.append(o[0])
o.pop(0)
f = [x for x in pool if quickorder(x.tag) == 3]
f.sort(key = lambda x: x.bowl - 5*random.random())
y = f[:2]

pool = [x for x in pool if x not in y]
pool.sort(key = lambda x: value(x, t), reverse = True)
y.append(pool[0])
pool.pop(0)

f.sort(key = lambda x: x.bowl+ 5*random.random(), reverse = False)
while len (f) > 0 and len(xi) < 5:
xi.append(f[0])
f.pop(0)
if len ([x for x in y if quickorder(x.tag) == 4]) == 0: pool.sort(key = lambda x: value (x, t, s = True), reverse = True)
else: pool.sort(key = lambda x: value (x, t), reverse = True)
y.append(pool[0])

c = f+s
c.sort(key = lambda x: x.bowl+ 5*random.random(), reverse = False)
while len (c) > 0 and len(xi) < 7:
xi.append(c[0])
c.pop(0)
#print ([x.name for x in y])

a = [x for x in pool if x not in xi]
pool = [x for x in pool if x not in y]
pool.sort(key = lambda x: x.bat + 5*random.random(), reverse = True)
y = y + pool[:5]

#print ([x.name for x in y])

o = [x for x in pool if 'Open' in x.tag and x not in y]
while len([x for x in y if 'Open' in x.tag]) < 2 and len(o) > 0:
y.append(o[0])
o.pop(0)

a.sort(key = lambda x:x.bat+ 5*random.random(), reverse = True)
while len (a) > 0 and len(xi) < 10:
xi.append(a[0])
a.pop(0)
k = [x for x in pool if 'WK' in x.tag and x not in y]
if len([x for x in y if 'WK' in x.tag]) < 1 and len(k) > 0: y.append(k[0])

while len(a) > 0 and len(xi) < 11:
if len([x for x in xi if x.bat < 20 and quickorder(x.tag) > 1]) >= 4: a.sort(key = lambda x: x.bat/2 + max(0, 45-x.bowl)+ 5*random.random(), reverse = True)
else: a.sort(key = lambda x: x.bat, reverse = True)
xi.append(a[0])
a.pop(0)
pool = [x for x in pool if x not in y]
while len (y) < 11:
y.append(pool[0])
pool.pop(0)

xi = order (xi, x)
return xi
y = order (y, x)
return y


def game(t):
for i in [t.home, t.away]:
if len (i.active) != 11: i.xi = firstxi(i)
if len (i.active) != 11: i.xi = firstxi(i, t)
else: i.xi = i.active
#print (i.name, i.xi, i.squad, i.active)
i.gamecapt = [x for x in i.xi if x.capt == max([x.capt for x in i.xi])][0]
Expand Down
4 changes: 3 additions & 1 deletion historical.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from callcricketnew import test, innings, bowling, player, team, quickorder, listshow, playerwrite
from game import game, setup
from altcricket import seri
from altcricket import seri, statsdump
import pickle, datetime, random, copy, os

def HistoricalYearsSelect (x,y):
Expand Down Expand Up @@ -147,6 +147,8 @@ def series (home, away, homeplayers, awayplayers):
print ('Man of the series: {} ({})'.format(s.players[0].name, s.players[0].team))
print ()

statsdump (s.players, s.inns, s.bowls, folder = folder)




Expand Down
7 changes: 5 additions & 2 deletions historicalleague.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@

def setup (x):
t = team ()
t.name = x
t.active = histplayers(x, a, b)
if x == 'all':
x = 'World'
for i in t.active: i.team = x
t.name = x
return t

if __name__ == '__main__':
print ('Custom league')
print ('Historical league')

x = teamnumber ()
t = []
Expand Down
34 changes: 25 additions & 9 deletions settings.txt
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.

0 comments on commit 90bba30

Please sign in to comment.