Building my own Cricket Manager

The beta release might get postponed a bit, maybe by a week. Because, I am home now ( got a week's leave sanctioned yesterday :D :D ). I do not have the program here right now, so give me another week.
 
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.
 
i was gonna ask about pace and spin while i was doin the players and stuff before, but now im glad you implemented that into it :D
 
Here's a screenshot. This is the main screen you will get after you choose your team. You select the squad and the playing eleven, and can view details about the players.

The selected players are in pink, unselected ones are white. You put the mouse over the player's name, his details are shown to the right.
 

Attachments

  • screen.jpg
    screen.jpg
    83.1 KB · Views: 0
The second average under bowling ( the one with value 30 ) is actually Strike rate. It is just a mistake.

BTW, the details are for McGrath, if you look closely, the command button next to McGrath is focused. Do not look at the stats. They are just junk values. I will be needing lots of help on the database. Guys, who sent me the previous cml and cms files, excuse me, I am now using a completely different and a better method now.

The AI will be ready in the next two days. Anybody wants to test it, post here.
 
I wanna test it, also whats the new format for the teams, i didn't really understand what u posted above
 
Great news guys. The AI is working great. I managed to bring in changing pitch conditions, which is based on the weather conditions.

And, I just got a drawn match between India and Australia.

Download the Scorecard and full commentary below.
 

Attachments

  • Drawn_Match.zip
    4.4 KB · Views: 11
is this released yet, i mean the first version ? if so where can i get it
 
Maybe you should lessen this piece:
Edged! Its very difficult to kill a man who is happy thoughts bent upon committing suicide!
 
could u please add me to msn iniyan - i would like to ask you something
 
So is it May later or sooner
Please let us know.

PS: The screenshot looks mad.

Will you be able to somehow unlock special teams like in cricket 2002. By winning things.
 

Users who are viewing this thread

Top