GithubHelp home page GithubHelp logo

football-score-board's Introduction

Live Football World Cup Score Board

Provide the implementation of the Live Football World Cup Score Board

Requirements

  1. Start a new match, assuming initial score 0 โ€“ 0 and adding it the scoreboard. This should capture following parameters:
    • Home team
    • Away team
  2. Update score. This should receive a pair of absolute scores: home team score and away team score.
  3. Finish match currently in progress. This removes a match from the scoreboard.
  4. Get a summary of matches in progress ordered by their total score. The matches with the same total score will be returned ordered by the most recently started match in the scoreboard.

Assumptions

We assume that after football match initialization:

  1. score value cannot be negative
  2. score value cannot be decreased
  3. score value can only be sequentially increased by 1 for one team at a time
  4. each match starts with some delay, so we can always distinguish which is the most recent

Notes

Please note that showOngoingMatches(List<Match> matches) method added just to print results in the console.

football-score-board's People

Contributors

cloudhub avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.