BuzzerBeater Forums

Help - English > Game Engine question

Game Engine question

Set priority
Show messages by
This Post:
00
157112.37 in reply to 157112.29
Date: 9/19/2010 7:40:45 PM
Overall Posts Rated:
522522
lol nice!

This Post:
00
157112.38 in reply to 157112.30
Date: 9/19/2010 7:53:02 PM
Overall Posts Rated:
522522
Ok I see your point now.
Wouldn't injuries and fouls just be a part of the calculation?
Everything in the GE is going to have some sort of chance, like if a shot goes in.
All the GE really is a bunch of numbers being put together.
We see 2+2=4 all the time.
The GE has chance factors so it is changing.
I think in the calculation, everything will be part of the formula to figure out the conclusion. Nothing is recalculated, it just keeps calculating.


Look at it like this:

First Event:
Must be a jump ball.
Who wins the jump ball? Game engine looks at both players skills, works out a probability, (so maybe 75% to player A and 25% to player B). Then applies the probability, so maybe in this case Player B actually wins it. Now we move on to the second event.

Second Event:
Player B has the ball. Possible Events include Player B turning over the ball, having the ball stolen, passing the ball, shooting from where he is, driving to the basket, getting fouled, fouling, being injured etc etc. The probability of each of these events occuring is worked out based on the skills of different players. Then the probability is applied, and lets say he decides to shoot from where he is. Now we move on to the next event.

Third Event:
Does the ball go in?
Game engine looks at players jump shot, jump range, opponents defence, experience, opponents shot blocking, players driving, etc etc. Works out the probability of making the shot is 10% and 90% chance of missing the shot. Applies the probability and in this case the shot is missed. Now we move on to the next event.

Fourth Event:
Who gets the Rebound?
Game engine calculates players position, rebounding skill etc and works out who is most likely to get the ball. Then applies the probability, and in this case perhaps the least likely player to get the rebound actually does get the rebound. Then we move on to the next event.

As you can see, each event is based on the previous event/events. So after each event the probabilities for the next event need to be recalculated.

Disclaimer: There is no proof of this or that this is way it works, this is just my theory on how the game engine calculates what could happen and what does happen.

This Post:
00
157112.39 in reply to 157112.31
Date: 9/19/2010 7:56:04 PM
Overall Posts Rated:
522522
Hold on hold on hold on. I'm asking a question about the Buzzerbeater Game engine & if foul trouble or Injury would change the outcome. You are all talking about the meaning of life or something!!! lol
Love the way this moved of track though. :)


haha meaning of life ftw :D

Foul trouble does affect the final result, because the final result is not predetermined. As the game is making its calculations, lets say you are up by 20 points with the last quarter to go, and in the first few seconds your player is fouled out or injured. Now you only have 4 players. So the calculations are now based on you having 4 players and a lucky fan vs his 5 players. In that sense the score is changed because he is now a good chance at catching up and might overtake you and win by 3 points or something.

This Post:
00
157112.40 in reply to 157112.32
Date: 9/19/2010 7:56:41 PM
Overall Posts Rated:
522522
lol. Love your logo btw.

Message deleted
This Post:
00
157112.42 in reply to 157112.39
Date: 9/19/2010 8:51:54 PM
Overall Posts Rated:
1717
lets say you are up by 20 points with the last quarter to go, and in the first few seconds your player is fouled out or injured. Now you only have 4 players. So the calculations are now based on you having 4 players and a lucky fan vs his 5 players.



Haha 'a lucky fan'

This Post:
00
157112.43 in reply to 157112.38
Date: 9/20/2010 2:26:22 AM
Overall Posts Rated:
275275
I guess this is kind of what I was aiming at.
If a player is injured, the GE wont go "HANG ON, let's recalculate". It's just part of the GE.
I'm saying injuries and fouls are part of the calculation and if this happens, it wont change the GE in anyway. It just keeps going.

The topic was about if fouls or injuries make the GE recalculate and I think no because of the reason above.

Can you smell what the Hobos are cooking... oh wait its just Roger. (18085274)
This Post:
00
157112.44 in reply to 157112.43
Date: 9/20/2010 3:51:38 AM
Overall Posts Rated:
522522
I guess it comes down to your interpretation of what recalcuation means.

This Post:
00
157112.45 in reply to 157112.44
Date: 9/20/2010 9:27:36 AM
Overall Posts Rated:
6161
That's what I am beginning to think as well. I thought it would simply re-calculate the game each time something happened that adversely affected one team or another, to bring you to the end result. This maybe true, but suggestion seems to point to every aspect from shots made & missed to free throws changing momentum in the game. If this is true, it's a real nice aspect to the game. No wonder there's 10k lines of code.

Right is not a popularity contest!
This Post:
00
157112.46 in reply to 157112.45
Date: 9/20/2010 10:20:57 AM
Overall Posts Rated:
522522
Yeah i think that is the way it is. Momentum is coded in to the game so it supports my theory. There is a BB post saying that somewhere.

This Post:
00
157112.47 in reply to 157112.38
Date: 9/20/2010 2:04:38 PM
Arizona Cacti
III.8
Overall Posts Rated:
276276
First Event: Who wins the jump ball? Game engine looks at both players skills, works out a probability, (so maybe 75% to player A and 25% to player B).


I've always wondered how this was determined. It would make sense if it just took a player's height into effect as that's the most relevant factor in a jump ball situation where jumping is not evaluated one way or another.


Game engine looks at players jump shot, jump range, opponents defense, experience, opponents shot blocking, players driving, etc etc. Works out the probability of making the shot is 10% and 90% chance of missing the shot. Applies the probability and in this case the shot is missed. Now we move on to the next event.


I think this is pretty close. I have a couple additions though. I think these calculations are made by the player, not the engine and whether or not the shot is then taken depends on experience. For example a player with good experience would not take a 10% shot unless the shot clock was very low whereas a player with high experience would pass or attempt to drive. I infer this based on a BB's comment that players with high experience "make the smart choice." Moving on. For argument's sake, let's say the player does shoot. At this point, the driving would already have been factored in (if he did drive, odds are the % would increase, unless he drove into the zone of a better defender) as would a good pass that led to this shot which would increase the odds of a successful shot. I believe the next factor put in is the opposing player's shotblocking as a shot block will make any additional calculations pointless. If the shot is not blocked THEN game engine moves on to calculating the % of shot going in simply by comparing players jump shot (or inside shot) and jump range against the applicable type of defense of the opposing player. Enthusiasm, stamina, etc add or detract from the overall calculations.


As you can see, each event is based on the previous event/events. So after each event the probabilities for the next event need to be recalculated.


This. I disagree with OP's inference that everything is predetermined and subscribe to the theory that each event within a game is (nearly) independent of any other event in that game and only takes into account changes in stamina or possibly momentum. Each play takes the skills of the players, the score, the offenses and defenses and said changes stamina and churns out a resulting play based on these numbers. Basically, I think Naker is correct and is saying the same thing as this but I just wanted to clarify a couple points.

Advertisement