A GUI-less, CLI-less, but certainly not POINT-less tennis scoring system. Written in Typescript
Ensure you have the expected version of Node.js. If you use a Node version manager such as fnm or nvm, you can switch to the expected version by:
- cd into the project root
cd tennis-scorer
nvm use
Simply run npm install
For an example tennis match, run the command npm start
but note this will be a fairly boring experience
as no logging is configured
npm test
covers the various ways a game can be scored
- A tennis match can only have 2 players (I.e. it is a game of singles, not doubles)
- Players never have the same name
- The only way to progress a game is through the
pointWonBy
method - Match consists only of 1 set