CRI.EXE is a Cricket Game Simulator I wrote this program a way back, in 1982 and refined it over the years until 1990, changing programming languages in the course of time. I have had hours of fun playing this program, I hope you enjoy it too. So much for the history... Preparation : First Thing to do is to make two teams. Here is an example team : Tendulkar 0.40 0.110 1 0.10 1 Prabhakar 0.35 0.125 1 0.12 1 Siddhu 0.375 0.125 1 0.00 0 Kambli 0.39 0.110 1 0.00 0 Azharuddin 0.37 0.120 1 0.10 1 Manjrekar 0.35 0.125 1 0.00 0 Mongia 0.35 0.125 1 -1.0 0 Srinath 0.35 0.125 0 0.12 1 Raju 0.25 0.125 0 0.125 0 Kumble 0.25 0.125 0 0.125 0 Vaidya 0.35 0.125 0 0.12 1 Kapoor 0.25 0.125 0 0.125 0 Chauhan 0.25 0.125 0 0.125 0 Prasad 0.35 0.125 0 0.12 1 Jadeja 0.375 0.125 1 0.11 1 The rules for making a team are simple. Each line represents the playing technique of one player The line must have the following format : Name ActivityRate RiskRate FIsGoodBat BowlingStrikeRate BowlingType The description of every field in one line is as follows: The First field i.e. Name should not require explaining. ActivityRate defines the general Batting Activity of the batsman which means the ratio of balls the batsman will do some exciting activity upon i.e. if this number is near to 0 the batsman is Rizwan-Ul-Zaman or sticker. More the number, more exciting the batsman is. I had conducted a study of this ActivityRate and Shrikkanth in his prime (in B&H cup 1984) had an activity rate of 0.43. RiskRate is the number of balls that qualify under the above ActivityRate (i.e. something exciting happened) on which the batsman makes a risky shot. i.e. ActivityRate x RiskRate determines how quickly the batsman will get out. FIGoodBat means if this batsman is a recognized batsman. If this number is 0, the batsman is essentially a tail ender. If this number is 1, the batsman is a good batsman. If this number is 2 the batsman is almost a Miandad in Pakistan and if the number is 3, the batsman is Border playing against "U.S.Schoolboy's under 15" team and so on... Generally this number is 1 or 0, unless you want to make your batsman invincible. BowlingStrikeRate defines how good this player is as a bower. This is the ratio of balls when he will really pose problems for a batsman. Lillee, Marshall, Hadlee, and Warne currently and the likes would have a BowlingStrikeRatio of about 0.14 and Shrikkanth bowling his gentle off-spin would be 0.03 or so. If this number is -1 this means that this player is the wicket keeper. and the last number BowlingType is 0 or 1. 1 means fast bowler and 2 means slow. This number is used only in three "rules" within this program. These rules are : 1)You cannot play a sweep against a fast bowler. 2)You cannot hook a slow bowler. 3)You won't be able to stump a batsman out against a fast bowler. Other misc. rules: A team file must be at least 11 lines; the first 11 lines in the file are taken as the team. The rest of the lines are ignored. There must be a unique wicketkeeper in the first 11 lines. I don't know what will happen if there is not exactly one wicketkeeper. Now about playing the game.... Once you have the two teams ready. Run CRI and after the introduction screen it will ask you for the names of two teams. Enter the names separated by a space (not comma). Other questions are simple to answer. It will also ask for a output file name. This is where the scorecard will be stored. The activity rates etc. are adjusted for a one-day match internally within the program. To play a test match or a match on a slower/faster outfield, and conditions you may require different activity rates, but you need not change your team files, instead, you can sat CRI nnn where nnn is the percentage of activity to be considered e.g. if you want to play a one-day match under heavy conditions, the activity would be 80%, so you will enter CRI 80 and if you want to play a friendly match in Bombay, your activity will be more by say 20% so you will enter CRI 120 Every bowler is allowed TotalOvers/5 overs in a one day match. If you are playing a test match, you don't want this restriction. so you enter CRI nnn t e.g. entering CRI 60 t means play at 60% activity and that this is a TEST match, so the bowler can bowl as much as he (or you) like. Generally for a test match, an activity of 60-75% is desired other wise you get 1-day like results. This game is based entirely on your activity indices, but strange things can happen, i.e. You may make your batsman having a activity rate of 1.00 and RiskRate of 0.00, but there exists a chance (very slim maybe?) that he will get out. The output file is a nice formatted text file which gives a ball-by-ball scorecard of the match and some stats. The biggest deficiency in this game is that it has no extras i.e. no wide balls, no no balls, leg-byes etc. I plan remove this deficiency in the next version which I am writing current;y for Win16 and Win32. Hope you enjoy the game as much as I have in the past years. Please comment, your inputs and feedback is the only way I can make this program more realistic and enjoyable. Thank You, Makarand Gadre makag@microsoft.com mag@eskimo.com Seattle April/17/1995 P.S. this program is undoubtedly a FREEWARE. P.P.S. Enclosed are two teams AUS and IND and a scorecard of the 1-day match that will be played now here.