0.0.1 • Published 5 years ago

bridge-scoring v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Bridge-Scoring

This Javascript package is designed to score every possible outcome of a Contract Bridge game.

The following methods of scoring are implemented:

  • score for a contract
  • matchpoints for a board
  • IMPs for a board
  • Victory Points for a match

Each method can be called seperately to calculate certain results.


Features

The features folder contains the source code and a detailed documentation of every function with several examples.

Included files:

  • score.js
  • matchpoints.js
  • imps.js
  • victorypoints.js

Tests

The tests folder contains test cases for the source code and a list of every testcase. All tests have beeen run with jest.