Giter Club home page Giter Club logo

live-football-world-cup-scoreboard's Introduction

Live football world cup scoreboard

Overview

The following repo contains Live football world cup scoreboard which is Java based application.

Task requirements:

You are working in a sports data company, and we would like you to develop a new Live Football World Cup Scoreboard library (or frontend application) that shows all the ongoing matches and their scores. The scoreboard supports the following operations:

  1. Start a new game, assuming initial score 0 โ€“ 0 and adding it the scoreboard. This should capture following parameters: a. Home team b. Away team
  2. Update score. This should receive a pair of absolute scores: home team score and away team score.
  3. Finish game currently in progress. This removes a match from the scoreboard.
  4. Get a summary of games in progress ordered by their total score. The games with the same total score will be returned ordered by the most recently started match in the scoreboard. For example, if following matches are started in the specified order and their scores respectively updated: a. Mexico 0 - Canada 5 b. Spain 10 - Brazil 2 c. Germany 2 - France 2 d. Uruguay 6 - Italy 6 e. Argentina 3 - Australia 1 The summary should be as follows:
  5. Uruguay 6 - Italy 6
  6. Spain 10 - Brazil 2
  7. Mexico 0 - Canada 5
  8. Argentina 3 - Australia 1
  9. Germany 2 - France 2

Guidelines

  1. Clone this repository

  2. Go to src/test/java directory and run WorldCupScoreBoardTest.java

Junit tests

All Junit tests are in Java test class WorldCupScoreBoardTest.java

WorldCupScoreBoardTest contains Junit test :

	void itShouldInsertMatch()
	void itShouldNotInsertMatchWhenSameMatchExists()
	void itShouldNotInsertMatchWhenActiveMatchExist()
	void itShouldRemoveMatch()
	void itShouldUpdateMatch()
	void itShouldNotUpdateMatchWhenMatchIsDisabled()
	void itShouldNotUpdateTeamWithNegativeTeamScoreValue()
	void itShouldReturnOrderedMatches()

Support

Any question regarding this repo can be send to email [email protected]

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.