I just called my colleagues and asked them to send the program. I have it right here.
But now, there might be a problem, I just struck gold.
The AI part which I had planned to implement in the upcoming versions ( just because I did not know how to implement it until now ), just took shape.
Here's the core. I have the formula running pretty well. Just take a look at this and tell me your views. Also some additions, but don't make it complex. I am planning to implement factors such as "bowling to a side", "off/on side liking", "slogging", "temperament", etc. But, that will be in the future versions, not now.
The basic AI follows these rules:
Batsman Runs:
1. Batting Ave.? ? ?? Av1
2. Batting S/R.? ? ?? SR1
3. Bat form.? ? ? ? ? F1
Bowler runs:
1. Economy? ? ? ? ? ? E
2. Bowler form.? ? ?? F2
3. Fielder ability.?? H
Misc:
1. Bat v pace.? ? ? ? AP
2. Bat v spin.? ? ? ? AS
3. Bowler S/R.? ? ? ? SR2
4. Bowler Ave.? ? ? ? Av2
5. Batting Type.? ? ? T1
6. Bowling Type.? ? ? T2
The other global conditions include:
1. Playing Conditions - These must change during run-time.
2. Aggression of batsman - These can be changed during run-time by the user.
3. Aggression of bowler - These can be changed during run-time by the user.
So, the db must basically contain the follwing fields:
Name Team T1 T2 Av1 SR1 F1 AP AS E F2 Av2 SR2 H
-------------------------------------------------------------------------------------------------
Sourav Ganguly IND LA RMA 4 8 7 8 9 5 6 4 4 7
The same format will be used in domestic and tour matches, but with first class stats.
Names could be "IL.txt", "IT.txt", "FL.txt" and "FT.txt"
As DityDog posted, it was my aim to create a cricket management game just like CM4, that is exactly why I started all this. Given the new AI, that is quite possible, but I will need to start from scratch. But no probs. A CM4-like game might take just about two months to complete, but for the 2d-engine. Because the 2d-engine is a bit catchy to build.