Skip to content

andreysirak/LiveFootballScoreBoard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Live Football World Cup Scoreboard Library

Overview

This project is a simple Java library for managing a live scoreboard for football matches during a World Cup. It allows starting, updating, finishing matches, and retrieving a summary of ongoing matches.


Features

  1. Start Match: Add a new match to the scoreboard with an initial score of 0-0.
  2. Update Score: Update the score of an ongoing match with absolute values.
  3. Finish Match: Remove a match from the scoreboard.
  4. Get Summary: Retrieve a summary of ongoing matches, sorted by:
    • Total score in descending order.
    • For matches with the same total score, most recently started matches appear first.

Example Usage

Starting a Match

Scoreboard scoreboard = new ScoreboardImpl();
Team homeTeam = new Team("Spain");
Team awayTeam = new Team("Brazil");

scoreboard.startMatch(homeTeam, awayTeam);

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages