README.md 1.07 KB
Newer Older
João Lino's avatar
João Lino committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
# Score Board Library (simple)
Live Football World Cup Score Board that shows matches and scores

## Content
This module includes:
- API for the library
- Generic implementation
- Reference implementation

## Description
The board supports the following operations:
1. Start a game. When a game starts, it should capture (being initial score 0 – 0):
   a. Home team
   b. Away team
2. Finish game. It will remove a match from the scoreboard.
3. Update score. Receiving the pair score; home team score and away team score
   updates a game score.
4. Get a summary of games by total score. Those games with the same total score will
   be returned ordered by the most recently added to our system.
   
As an example, being the current data in the system:
```
   a. Mexico - Canada: 0 - 5
   b. Spain - Brazil: 10 – 2
   c. Germany - France: 2 – 2
   d. Uruguay - Italy: 6 – 6
   e. Argentina - Australia: 3 - 1
```
   The summary would provide with the following information:
```
31 32 33 34 35
Uruguay 6 - Italy 6
Spain 10 - Brazil 2
Mexico 0 - Canada 5
Argentina 3 - Australia 1
Germany 2 - France 2
João Lino's avatar
João Lino committed
36
```