···11+# Tournament
22+33+Welcome to Tournament on Exercism's PHP Track.
44+If you need help running the tests or submitting your code, check out `HELP.md`.
55+66+## Instructions
77+88+Tally the results of a small football competition.
99+1010+Based on an input file containing which team played against which and what the
1111+outcome was, create a file with a table like this:
1212+1313+```text
1414+Team | MP | W | D | L | P
1515+Devastating Donkeys | 3 | 2 | 1 | 0 | 7
1616+Allegoric Alaskans | 3 | 2 | 0 | 1 | 6
1717+Blithering Badgers | 3 | 1 | 0 | 2 | 3
1818+Courageous Californians | 3 | 0 | 1 | 2 | 1
1919+```
2020+2121+What do those abbreviations mean?
2222+2323+- MP: Matches Played
2424+- W: Matches Won
2525+- D: Matches Drawn (Tied)
2626+- L: Matches Lost
2727+- P: Points
2828+2929+A win earns a team 3 points. A draw earns 1. A loss earns 0.
3030+3131+The outcome should be ordered by points, descending. In case of a tie, teams are ordered alphabetically.
3232+3333+## Input
3434+3535+Your tallying program will receive input that looks like:
3636+3737+```text
3838+Allegoric Alaskans;Blithering Badgers;win
3939+Devastating Donkeys;Courageous Californians;draw
4040+Devastating Donkeys;Allegoric Alaskans;win
4141+Courageous Californians;Blithering Badgers;loss
4242+Blithering Badgers;Devastating Donkeys;loss
4343+Allegoric Alaskans;Courageous Californians;win
4444+```
4545+4646+The result of the match refers to the first team listed. So this line:
4747+4848+```text
4949+Allegoric Alaskans;Blithering Badgers;win
5050+```
5151+5252+means that the Allegoric Alaskans beat the Blithering Badgers.
5353+5454+This line:
5555+5656+```text
5757+Courageous Californians;Blithering Badgers;loss
5858+```
5959+6060+means that the Blithering Badgers beat the Courageous Californians.
6161+6262+And this line:
6363+6464+```text
6565+Devastating Donkeys;Courageous Californians;draw
6666+```
6767+6868+means that the Devastating Donkeys and Courageous Californians tied.
6969+7070+## Source
7171+7272+### Created by
7373+7474+- @MichaelBunker
7575+7676+### Contributed to by
7777+7878+- @dstockto