pyton #
pyton is a cricket scoreboard simulator written in Python. It is an unfinished project of mine that I worked on in 2017 and 2018, and was based on an idea I had that it may be interesting to generate thousands of cricket scoreboards and mine them for patterns.
The main logic behind the simulator involves building the game of cricket up from its layers: there are balls, and overs, and innings, and there are batsmen and bowlers and fielders, and each must be kept track of after each “step” in the game, which is a delivery. The logic that decides whether a game is finished after any given delivery is actually quite difficult to implement, considering the different possible ways there are to win, lose or draw (or tie) a cricket match.