Originally posted by neoliminal
For a total of 24 spots to check... when there are only 11 players on the field.
I have a better idea... how about you identify the number of blitzers and assign blockers to each one. Then you have a max of 11 calculations.
The computer knows how many blitzers are coming and where they are coming from. It knows where the blockers are and how fast they are. It can simulate just the blocking if it needed to, and assure that all the blitzers could be blocked and where the contact for testing would be.
Once the pathing is done, you make the checks to see of anyone failed to match their assignments.
The idea of having 24 zones and then having to match up a blitz package to the zones is... stupid, IMO.
You do understand it is mathematical calculations correct?
The spots aren't zones. They are possible places to line someone up for blitzing. So a FS could be lined up at 17-24. A DT could be lined up at 5, 6, or 7. A MLB could be lined up at 2-8 or 13-21.
If you just make it based on the players blitzing, you can screw the OL up by moving the players around to different spots and force OL to criss cross each other.
However, if you have a blocking code for every possible numerical combination, it doesn't matter which player is in which spot. The OL, TE, backs will block based on the numerical combination from where the blitz is coming from.
You then add in vision checks for offense to identify the blitz. You can set it up so QB may audible if he effectively reads the blitz to make blocking more effective. However, if QB/OL fail vision checks, they may miss a LB, S, or CB who is blitzing. Disguise blitz would make the vision check harder for OL/QB to pass.
So, you may be sending 4 DL on a rush from the #1, #5, #7, #8 spots. And sending 2 LBs from the #9 and #18 spots. The QB may then read the blitz and audible the TE to pass block left. If the OL picks everyone up, they block based on a blitz/pass rush coming from #1,5,7,8,9,18. However, if one of them fails the vision check, (let's say one misses the LB at #18 spot), then that player will block as if there is only a blitz coming from #1,5,7,8,9.
It requires a lot of code work on Bort's part, but it will be a lot easier to code than trying to pick blocking assignments when players can be moved around and blitz from a virtually infinite number of positions and with a huge combination of personnel.