Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/frankwallis/dds-node-adapter

node addon for the dds double-dummy solver for contract bridge
https://github.com/frankwallis/dds-node-adapter

Last synced: 20 days ago
JSON representation

node addon for the dds double-dummy solver for contract bridge

Awesome Lists containing this project

README

        

dds-node-adapter
==================

[![build status](https://secure.travis-ci.org/frankwallis/dds-node-adapter.png)](http://travis-ci.org/frankwallis/dds-node-adapter)

A node addon for the [DDS](https://github.com/dds-bridge/dds) bridge double dummy solver. The computation methods are run asynchronously and can return results either in a Promise or via a callback. Uses [node-pre-gyp](https://github.com/mapbox/node-pre-gyp) to manage the build and install.

## Platform requirements

- Node.js 0.12.x or higher
- It has been tested on Linux, Max and Win32 and prebuilt binaries will normally be available for those platforms.

## Methods Implemented

```
solveBoard(boardInfo, options): Promise;
solveBoard(boardInfo, options, callback);

calcResultTable(deal): Promise;
calcResultTable(deal, callback);

par(resultTable, vulnerability): Promise;
par(resultTable, vulnerability, callback);
```