Skip to content

Latest commit

 

History

156 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

View league tables order by points per game. Includes all UK leagues (including WSL) and European top divisions.

Teams are sorted by points per game, then by the number of games played.

If teams have a 100% win record, the team which has played more games is sorted higher 1.

For all other points-per-game ties, the team which has played fewer games is sorted higher.

If both of those values are equal, teams are sorted by goal difference, and then by team name.

Points per game uses the points earned through wins and draws before any points deduction. Deductions are identified by comparing earned points with the official total and are shown as numbered footnotes on the table.

Run locally

cd .\src
dotnet run --project .\PointsPerGame.UI.Blazor\PointsPerGame.UI.Blazor.csproj --launch-profile https
cd ./src
dotnet run --project ./PointsPerGame.UI.Blazor/PointsPerGame.UI.Blazor.csproj --launch-profile https

Then open https://localhost:7097.

Test locally

dotnet test .\PointsPerGame.Tests\PointsPerGame.Tests.csproj
dotnet test .\PointsPerGame.UnitTests\PointsPerGame.UnitTests.csproj
dotnet test ./PointsPerGame.Tests/PointsPerGame.Tests.csproj
dotnet test ./PointsPerGame.UnitTests/PointsPerGame.UnitTests.csproj

Project layout

  • PointsPerGame.Core: League names, Guardian scraping/parsing, and sorting.
  • PointsPerGame.UI.Blazor: The website.
  • PointsPerGame.UnitTests: Parser and service tests.

Deployment

#30

Internals

A Blazor server site

Footnotes

  1. A team with four wins from four should sort higher than one with three wins from three games, regardless of goal difference. Only an issue at the start of the season.

About

View football league tables ordered by points per game. Includes all UK leagues (including WSL) and European top divisions

Resources

Stars

1 star

Watchers

1 watching

Forks

Used by

Contributors

Languages