How to write an algorithm to prepare for cricket game
Answers
Answer:
don't know sorry but mark as brain list answer
Answer:
I need to create a cricket manger game (much like football manger).
Long story short i need to decide the outcome of a game based on each users team and tactics. My idea was to decide the outcome ball by ball.
So depending on a Bowlers attributes (strength, stamina, skill etc) a ball (with some properties : speed etc) is send towards the batsmen, the batsmen would hit (or not) the ball depending on a score too, if the ball is hit i would then send the ball towards one of the fielders (assume there are 9, generate a random number between 1 and 9 and pass the that fielder). Again based on fielder skill it would catch the ball or not.
What I'm missing is the number of runs the the batsmen would do before the ball is catched. I want to fine tune the direction of the ball. I'm also not sure how order of player entrance would affect the game outcome.
Can you help me define a good match workflow ? ( I'm not very familiar with a cricket, read tutorials, watched games, never played though).
Explanation:
Hope it will help you
please follow me and mark my answer as brainliest answer