CRICKET DUCKWORTH/LEWIS CALCULATOR

INTRODUCTION

Duckworth-Lewis method calculator for one-day cricket matches. Based on the algorithms in DLCalc 3.0 by Jonas Maj, which were reverse-engineered from the official WinCODA 3.0 software introduced by the ICC in Oct 2011.

INSTRUCTIONS

Enter details about each innings in Overs and Wickets, and any delays to it which result in a reduction in the number of Overs played. Delays in play during an over should be input in the way they are normally displayed on television, so the second ball in the 26th over (25 overs have been bowled so it is the second ball in the 26th) would be entered as "25.2".

To correct a previous entry, enter "0" as the number of overs bowled and the previous entry will be deleted allowing you to re-enter those details. This can be repeated if necessary all the way back to the start of that innings.

When the first innings is complete, enter "D" or "d" (Done) as the number of overs bowled and the program will ask you how many runs were scored, and then process that innings which may take several seconds. This option can not be reversed once chosen! Once it has finished the program is ready to handle the second innings.

Enter details for the second innings in exactly the same way as the first innings.

The difference in the second innings, and the main value in this program, is the ability for it to calculate the score needed to win. When the length of the second innings is entered, the target score to win will be displayed below the details of the innings (this innings length can be amended by entering "0" as before and that score will be recalculated)

More importantly, entering "D" or "d" (Display table) as the number of overs bowled will switch to the Duckworth-Lewis Over-by-over par-score table view, probably the most important feature of the program. Displaying this involves computing the scores for every over and wicket remaining which can take up to about a minute. This only needs to be done once, unless a further delay in play is added which results in the second innings being shortened, meaning that those scores need to be recalculated.

Once the par-score view has been selected, the cursor-keys ('5', '6', '7' and '8') can be used to move around including scrolling up and down the full number of overs.

Pressing key '0' or 'B' will display a Ball-by-ball par score table on the right side of the screen centred on where the cursor is currently highlighting. This can be critical for close matches where play is interrupted in the middle an over. The Ball-by-ball table takes longer to fully display as each score is being calculated first.

The par-score view can be exited to add a Delay to play by pressing key 'D'.  After doing so, entering "D" or "d" as the number of overs bowled will again display the over-by-over table (after it has been recalculated if a delay has been added).