Library and Sample app for generating HTML baseball game data using Publish.
I got mad when I drafted a fantasy baseball team and couldn't see them play because the pandemic shut down Major League Baseball. So I wrote a baseball simulator so I could see how the team I drafted would fare in a head-to-head game.
This repo is how I convert the results to a static HTML site. I'm definitely pushing the limits of what John Sundell had in mind for his Publish library, but that's how I roll.
Tony Oliva was an outfielder for the Minnesota Twins. He should be in the Hall of Fame. He's not, but Mr. Oliva might take some solace knowing there is an open source Swift library named after him. I sat next to him at a Twins game once. That was awesome.
Update 12/5/2021:
Tony Oliva was elected to the Major League Baseball Hall of Fame! Welcome to the Hall, Tony O.
This is a sample implementation that shows how to use SimulationLeagueSiteGenerator to create a HTML site from a json file of Oliva LeagueData. If no json file is specified, an HTML site using StubData will be used.
All of the data models needed to create a baseball simulation website.
link |
Stars: 2 |
Last commit: 2 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics