Skip to content

Simulating the final table of a soccer (Premier League) season

License

Notifications You must be signed in to change notification settings

thebho/soccersim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI Go Report Card

Soccer Sim

Run

  1. Add a .env file with APP_DB_USER, APP_DB_PASS, APP_DB_NAME, and APP_DB_ADDR for a postgres database
  2. Add Goose binary from https://github.com/pressly/goose
  3. Run goose postgres $APP_DB_ADDR up in ROOT/data directory
  4. Start server with go run main.go

The main functions of this project are:

  1. Create and store soccer teams and their seasons
  2. Create new seasons and generate a randomized 38 match schedule for each team
  3. Allow for simulating the results of a season (currently based on a random selected goal total for the home and away team)
  4. Save the simulated matches and team record/goals scored
  5. Expose this functionality in a REST API for SoccerSimUI and testing
  6. Keep full test coverage and with 12 factor design

About

Simulating the final table of a soccer (Premier League) season

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages