UNPKG

football-scoreboard

Version:

A live football World Cup scoreboard library.

16 lines (15 loc) 549 B
import { Match } from "./match"; export declare class Scoreboard { matches: Map<string, Match>; sortedMatches: Match[]; activeTeams: Set<string>; startMatch(homeTeam: string, awayTeam: string): void; updateScore(homeTeam: string, awayTeam: string, newHomeScore: number, newAwayScore: number): void; finishMatch(homeTeam: string, awayTeam: string): void; getSummary(): string[]; private findInsertionIndex; private getNormalizedTeams; private generateMatchKey; private isSameTeam; private isPlaying; }