0.0.0 • Published 4 years ago

@suddjian/voting v0.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Voting

An implementation of voting algorithms.

For now the Condorcet method is supported because it's objectively the best voting algorithm :)

Usage

import { condorcet } from '@suddjian/voting'

const bestIceCreams = condorcet([
  ['chocolate', 'rocky road', 'vanilla'],
  ['strawberry', 'chocolate'],
  ['coffee', 'chocolate'],
  ['vanilla'],
  ['chocolate', 'strawberry'],
]);
0.0.0

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago