A simple backend implementation of a tennis match scoring system, built with Node.js and TypeScript. Includes unit tests using Mocha and Chai.
- Track points, games, sets, and match outcome
- Supports Deuce and Tie-break rules
- Handles multiple players and set history
- Lightweight, modular, and fully testable
- Node.js
- TypeScript
- Mocha — test runner
- Chai — assertions
git clone https://github.com/bumanerdene/tennis.git
cd tennis
npm install
## Run test
```bash
npm test
## Project Structure
├── src/
│ ├── player.ts # Player
│ ├── point.ts # Game
│ └── index.ts # Entry point
├── tests/ # Mocha test files
├── package.json
├── tsconfig.json
└── README.md