Neil Pickup
Cricket Web Moderator
As most of you probably know, I'm trying to develop a fairly comprehensive cricket simulator right now. The idea is to simulate every ball to a fairly high level of detail and to that end properly enhance the realism.
Over the next few weeks, I'm looking to develop an early engine (set of code) that defines what happens after the ball leaves the bowler's hand. The coding to decide whereabouts the ball passes the bat isn't too difficult, but I'm a little unsure as to how to simulate the batsmens' decision making process.
I've settled on code to decide a) where the ball ends up and b) where the batsman *thinks* the ball's going to end up (dependent on his talent), however I need some pointers (ideally with some number representation) as to what goes into deciding which balls to block, which to deflect, which to leave, and which to hit seven shades out of.
I'm also looking trying to build a decent bank of descriptions that I can use for different pitch types. The variables involved will be Bounce, Movement, Turn & Erraticism (affects bounce and turn) - for example the pitch type "Green Top" would be something like 70 - 95 - 20 - 30.
Over the next few weeks, I'm looking to develop an early engine (set of code) that defines what happens after the ball leaves the bowler's hand. The coding to decide whereabouts the ball passes the bat isn't too difficult, but I'm a little unsure as to how to simulate the batsmens' decision making process.
I've settled on code to decide a) where the ball ends up and b) where the batsman *thinks* the ball's going to end up (dependent on his talent), however I need some pointers (ideally with some number representation) as to what goes into deciding which balls to block, which to deflect, which to leave, and which to hit seven shades out of.
I'm also looking trying to build a decent bank of descriptions that I can use for different pitch types. The variables involved will be Bounce, Movement, Turn & Erraticism (affects bounce and turn) - for example the pitch type "Green Top" would be something like 70 - 95 - 20 - 30.