Skip to content

Reference

tilttek/score-sheets

Every public type of the package, with its role.

TypeRole
SheetDefinitionThe sheet of a game: categories, tie-breakers and teams, read from JSON and written back
CategoryOne line of a sheet: entered between its bounds, or computed
Tiebreaker, DirectionA tie-breaker, and which value wins
TeamCombineHow members' totals make a team's score: sum or best
ComparisonThe condition of a bonus
Operation\OperationHow a computed category gets its value
Operation\Sum, Product, Majority, BonusThe operations
Operation\OperationsReads back the operations written to arrays
ParticipantId, TeamId, MatchIdOpaque identifiers
TeamA team and its members
EntriesParticipants, teams and the values entered
Scoring\ScorerComputes a scoreboard from a sheet and its entries
Scoring\Scoreboard, ParticipantScore, TeamScore, StepThe scores, ranks and explanations
SheetStatus, MatchSheetThe status and the stored sheet of a match
ScoreKeeperPrepares, publishes, fills, closes and reopens the sheets of a store
MatchResult, PlacementThe neutral result of a closed match
Message\MatchResultRecordedThe message of a recorded result, with identifiers only
BlankSheetThe blank sheet to print, as neutral data
Contract\MatchSheetStoreThe store port
Store\InMemoryMatchSheetStoreThe store in memory, for tests
Exception\ScoreSheetsException and its five exceptionsExceptions