RelativePlacementJS
This library provide a placement system with the relative placement algorithm used in West Coast Swing dance competitions.
Understading relative placement
Relative placement is a placement system where electors (judges) provide there own placement of each candidates.
The algorithm consist to search for each place a majority of votes for a candidate at this placement or a greater placement.
You can refer to this explain from boogiebythebay.org for all details.
Get RelativePlacementJS
npm install relative-placement-js --save
With node:
var RelativePlacement = ;
With browser:
<!-- Or the original ES6 sources -->
With AngularJS:
angular;
Use RelativePlacementJS
var contest = ; contest;contest; contest;contest; var result = contest; // return ['A','B','C','D'];