Alternate History Sports

You are not logged in. Would you like to login or register?

Writing Workshop » Breaking down a simulated game score into quarters (request) » 3/06/2021 3:50 pm

austin-gud
Replies: 5

Go to post

I've been able to successfully write a set of rules for breaking down a score into its basic individual scoring components of 2, 3, 6, 7, and 8 points, and come up with a realistic scoring summary. The output of the code looks like the following for now:

Score Summary (BAL @ LV):
Quarter 1
  [3-0]  08:46 - BAL field goal
  [3-3]  05:32 - LV field goal
  [3-10]  03:34 - LV touchdown (PAT)

Quarter 2
  [3-13]  07:26 - LV field goal
  [3-20]  00:08 - LV touchdown (PAT)

Quarter 3
  [10-20]  13:27 - BAL touchdown (PAT)
  [17-20]  02:54 - BAL touchdown (PAT)

Quarter 4
  [24-20]  00:18 - BAL touchdown (PAT)

FINAL
  BAL - 24
  LV - 20

How the scores took place will be part of the story telling of the game.

Now that I've got the score summary, I should be able to use the generated data to map out each second of game time, and associate that second of game time to a time in real life, which will be phase 2 of getting live score updates for the GSL.

Writing Workshop » Breaking down a simulated game score into quarters (request) » 3/04/2021 2:03 pm

austin-gud
Replies: 5

Go to post

Dan O'Mac wrote:

Veras' simulation was different. For the regular season, he did a more generic method based on ratings.

When it came to his championship, it wasn't so much as by play as it was by time. He'd roll to determine the time of the score, using a couple dice. From there, he'd determine what type of score it is and build the story. So he determined it by the time of the score, not every play.

That's helpful to know, and it's given me some ideas.

I think I will be able to break down any score into parts, using some simplified rules. In essence, in football, the most point you can score at once is 8 points (I include extra points in with the touchdown score, because it is an untimed down). Any score greater than 8 points can be broken down in a finite number of ways, so from there, it's down to randomly selecting which individual scores add up to the final score. Since I'm automating this with code, once the rules are written once, I can always run the code to split the scores.

The next problem to solve is assigning scores to a game time. Each game is 3600 game seconds. I can randomly select a second, and assign an individual score to that second. But, the score can only be assigned to that second, if it meets another set of simple rules. For instance, a certain amount of time must pass between field goal scores (because rarely will you see a team score a field goal in less than a minute after gaining possession of the ball). So rules that account for things like that, and also when in the game a score occurs. 

Once I've assigned each individual game score to a game second, I can assign a game second to a real time second. In the simplest form, if a game lasts 3 hours, each second of game time takes 3 seconds of real time, if I divide real time evenly by game time. I'd like to add in a half time, and some variability. To do that, each game second can take a variable amount of real time seconds, but I will only allow for a minimum and maximum amou

Writing Workshop » Breaking down a simulated game score into quarters (request) » 3/04/2021 11:28 am

austin-gud
Replies: 5

Go to post

Simulating play by play would actually be a better way to do it, it's just more complicated. With play by play, I could post live play updates, instead of just live score updates.

I've done some play by play simulation in the past, but it never accounted for team offensive and defensive strengths, which is something that's very important in the GSL for league parity.

Do you simulate play by play, factoring in team strengths? I'm interested in how you've done your simulations.

Writing Workshop » Breaking down a simulated game score into quarters (request) » 3/03/2021 4:40 pm

austin-gud
Replies: 5

Go to post

I'm wondering if any of you have ever taken a simulated score, like a football score, for example, and then broken it down into a scoring summary, as a way to give a game more realism, rather than to just have a score at the end of the game. If I remember correctly, Veras used to have quarterly scoring broken down for the AFA back in the day, but I'm not sure if each quarter was simulated, or if a final score was broken down into quarters.

Here's what I'm getting at with this: I currently simulate the GSL, where the output is a single final score for each team. I would like to find a way to give "live" game updates, instead of posting the score 3 hours after the game start time. For live game updates, I would want to simulate the game at game start time, and then break down the team scores, into reasonable scoring chunks (20 points can be divided down to two touchdowns, and two field goals, or three touchdowns, and a missed extra point, etc.).

Finding a way to break down the scores is one problem. The other issue is, giving each of these scores a game time in which they were scored. There would have to be certain rules associated with scores, for example, a team probably wouldn't score a field goal in the first minute of a half, as that's very unlikely. Same with, a team probably won't score a field goal in less than a minute of game time after the other team had just scored.

By hand, I think this problem is easier to solve, but my goal would be to create a set of rules to break down scores, then give scores a game time when the score occurred, so that I can automatically break down a score at simulation time. This would make it easy for me to then also show live score updates, based on when in the game a score happened.

I'll take any and all thoughts, ideas, and experience you all may have on something like this.

Writing Workshop » Full Season Scheduling Formulas for Football » 3/03/2021 4:14 pm

austin-gud
Replies: 4

Go to post

I have somewhat of an update on this, for anyone who again, may find this useful. 
I've been writing a Python script that will generate a schedule for a 32 team league (as I plan to expand the GSL to 32 teams for the 2022 season). This script, right now, can generate a fully randomized schedule for all teams, that meets certain rules, like, not playing the same divisional team twice in a row, and not twice in the first 4 weeks. It also randomized bye weeks, for each team. The script can also rotate which divisions play which other divisions in the league, based on year.
I still need to work on scheduling home and away games for each team, and this should depend on divisional rotation (as in, with the NFL, an AFC team will alternate home and away games against an NFC team over 8 years).
I think it would be good to also give the script the ability to have games on a predetermined schedule (for example, the Lions always play on Thanksgiving at 12:30).
I don't have game times in this scheduling script yet, but that's easy enough to do by hand. Randomizing opponents while following matchup, and home and away rules is the hard part.
Once I get the 32 team league down, I could try to adapt the code to many other sized leagues.

Once I've got this whole script completed, I'll put it in a public git repository, with a readme file with instructions, so that anyone can download the source code, and run it to generate schedules. I think I'm still a ways off from being done, but it's something I've got in the works that hopefully helps someone out.

Writing Workshop » Full Season Scheduling Formulas for Football » 12/18/2020 1:06 pm

austin-gud
Replies: 4

Go to post

Hi everyone, I've been working on football scheduling formulas for 18 game football seasons, over 19 regular season weeks, so I can create schedules for Gridiron Uniform Database Simulation League (GSL).
In case someone might find them useful, I'm going to share a read only version of my scheduling spreadsheets:
https://docs.google.com/spreadsheets/d/1V-jVQ8iMFSIRGfevjr_7COZMRYTY52JxSTYS0EZuQSg/edit?usp=sharing

There's a few things I've got so far. First, is how double round robins can be played in 4 and 6 team divisions. Next, I have scheduling formulas for 18 games season over 19 weeks, with leagues that have 16, 18, 20, 22, and 24 teams (thus far). I figure for leagues 26 teams or more, schedules can be mapped to past NFL seasons.

The last few sheets are actual game schedules by week. The formatting may look a bit odd, but it matches what I need to create the schedule in the database for the GSL.

I'm not sure if this will be useful to anyone, but if anyone plans on scheduling full seasons worth of games, this should help. Having the division round robin formulas should also help when creating schedules for leagues of different size as what I have, since these schedules follow similar patterns.

Board footera

 

Powered by Boardhost. Create a Free Forum