Jump to content
  • Advertisement
Sign in to follow this  
walsh06

Sports Simulator

This topic is 1971 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have just started work on a sports simulator and Im wondering about some general design tips and wondering do people have any good ideas.

 

At the moment every minute of the match runs like this:

- Check which team performs event (better team overall more likely)

- Check what type of event: score, wide, save (determined by skills of attack, defence of each team)

- Check what player performs event (determined by probability for each player by skill and position)

 

This seems to be giving me fairly good results so far and its outputting text files as my match reports. But does any have some other tips or things to add in to help the game improve.

Share this post


Link to post
Share on other sites
Advertisement

Hi there,

 

I have created a hockey match simulation engine as part of an online hockey management game I built, it works pretty much how you have described only it runs each second rather than each minute. I think you're on the right track.

 

- All possible events are defined and given a baseline probability between 0-1. Each team has its own set of these event-probability pairs.

- Probability ratios are adjusted using formulas taking into account the ratings of the two teams.

- Each second of the game a "dice roll" is performed to determine which event (if any) has occurred.

- If an event occurs it breaks into a separate simulation whereby the players involved are selected (weighted based on their skills), and possibly further events are then tested for (ie. an attacking play may result in a shot on goal, a hit may result in a turnover, etc.)

- User-defined strategies modify the ratings for their team, thereby affecting event probabilities.

 

 

The trick lies in defining and tweaking appropriate probability ranges for each event, and coming up with formulas that result in the right probability given the ratings for each team you are comparing.

Edited by archanian

Share this post


Link to post
Share on other sites

initially I was going to do it more like yours but I decided just to go per minute and calculate large events to start and maybe break it down later. Thanks for the help and its nice to know I started off along the right track. 

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!