Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm new to game development and I was thinking of starting off with something easy like a top down simulated race game. It will be similar to a horse race, such that there will be betting, and character should win based on their attributes and simulated conditions.

One problem I'm currently facing is how to simulate who wins. Characters will probably have the attributes top speed, acceleration, endurance etc. I don't want the top ranked character winning all the races.

I was looking into probability distributions but I couldn't quite understand how that would help calculate who will win.

I know the winner will be who crosses the finish line first. However how do I calculate characters slowing down, speeding up?

share|improve this question
    
This sounds extremely similar to this question about simulating a race: gamedev.stackexchange.com/questions/18123/… –  thedaian Feb 3 '12 at 20:16

1 Answer 1

the easiest way is to randomly change attributes at the beginning of each game. say for every player in the game. you have actual attributes, but you'll simulate using some values generated for that exact game (which may be actual_attribute±10%).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.