Skip to content

dwjohnston/tennis

Repository files navigation

Tennis

Implements tennis scoring logic.

Instructions

Using node 18

npm i 
npm test 

Notes and caveats

External packages relate to TypeScript and Jest test runner.

The examples given show the game score not being displayed if it is 0-0 (ie. only the set score is displayed). This functionality is reproduced here.

The challenge says to not worry about validation - accordingly the logic does not account for what happens if we keep adding points after the set has already been won.

About

A code challenge that implements tennis scoring logic

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published