@hackage soccer-table0.1.0.2

Create League Tables from Soccer Game Results

Soccer Table

Calculate soccer tables from game results.

Generate Random Results

Clone the repository patrickbucher/random-soccer-results:

git clone https://github.com/patrickbucher/random-soccer-results.git

Create a folder for textual output:

mkdir results-25-26

Generate random soccer results:

python3 generate-results.py TEXT teams-25-26 results-25-26

Generate Soccer Table

Run the program for a specific league:

cabal run soccer-table random-soccer-results/results-25-26/bundesliga

Output:

  # Team                              P  W  T  L  +  -   =
----------------------------------------------------------
  1 TSG 1899 Hoffenheim              62 19  5 10 50 46   4
  2 Eintracht Frankfurt              61 18  7  9 37 24  13
  3 FC Bayern München                60 17  9  8 46 23  23
  4 VfB Stuttgart                    57 17  6 11 61 43  18
  5 RB Leipzig                       57 17  6 11 46 35  11
  6 SC Freiburg                      56 15 11  8 47 29  18
  7 1. FC Heidenheim                 56 14 14  6 36 29   7
  8 Borussia Dortmund                50 13 11 10 52 35  17
  9 Hamburger SV                     45 13  6 15 44 40   4
 10 1. FC Union Berlin               44 13  5 16 40 41  -1
 11 Bayer 04 Leverkusen              44 11 11 12 37 40  -3
 12 SV Werder Bremen                 41  9 14 11 40 40   0
 13 FC Augsburg                      38  9 11 14 27 37 -10
 14 FC St. Pauli                     37 10  7 17 21 42 -21
 15 FSV Mainz 05                     36  8 12 14 31 49 -18
 16 Borussia Mönchengladbach         35 10  5 19 39 54 -15
 17 VfL Wolfsburg                    33  9  6 19 28 43 -15
 18 1. FC Köln                       29  7  8 19 33 65 -32