Hi Izear
First of all, I am very impressed with your work.
I have a few questions.
- What's the meaning of weight in the below example?
- What's the use of scoresFromBallots?
- Can you share one example for Minimax Condorcet method?
- Is there any similar npm package for voting algorithms?
return scoresFromBallots(
[
{ ranking: [['Lion'], ['Bear'], ['Sheep']], weight: 4 },
{ ranking: [['Sheep'], ['Bear'], ['Lion']], weight: 3 },
{ ranking: [['Bear', 'Sheep'], ['Lion']], weight: 2 },
],
['Lion', 'Bear', 'Sheep'],
VotingSystem.Schulze,
)