-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions #64
Comments
Hello @narendersaini32 Thank you very much for the message! I'm very happy to see someone reaching out about this project. You motivated me to finish the release of a version 2. Unfortunately, I ended up unpublishing the whole package while trying to delete an invalid version 😕 Sorry if I cause any inconvenience. I will republish it in 24 hours.
|
@lzear
|
Very good point. new Minimax({
candidates: ['a', 'b', 'c'],
array: [[0, 1, 0], [0, 0, 0], [2, 1, 0]],
// 'PAIRWISE_OPPOSITION' | 'WINNING_VOTES' | 'MARGINS' (default)
variant: 'PAIRWISE_OPPOSITION',
}).scores() I published a working example here: https://runkit.com/lzear/minimax-example I managed to publish the package again: https://www.npmjs.com/package/votes |
You are the best. 👍 |
Hi again :) It's not really a code sandbox, maybe playground would have been a better term. Anyway, it's here: rank-votes.vercel.app I just added some links in the Readme:
This morning, I added Minimax to the voting systems in the demo (only the margins variant for now). Many other systems are still missing. Thanks for showing interest in this project 🙏 |
@lzear first of all, amazing work! I had the same question around the weight that is clear now, but I don't get it why it has an array with double entries here: { ranking: [['Bear', 'Sheep'], ['Lion']], weight: 2 }, Bear and Sheep same array, what is the difference for { ranking: [['Bear'], ['Sheep'], ['Lion']], weight: 2 }, Thank you in advance. |
Hello @maiconcarraro The library allows voters to indicate equal preferences in their ballots:
To get a better understanding of draws, you can maybe play around on https://rank-votes.vercel.app. Clicking the "✏️" icon, you can edit preferences by dragging candidates and generate preferences with draws. Or you can see another vote with draw here: https://www.elzear.de/poll/Uug62KMX Here is an example of what happens with in a Borda votes: the points for the ranks get shared amongst the candidates. As a consumer of the library, you are of course free to disallow draws by making sure the rankings only contains arrays of length 1. I hope the answer is understandable. Please ask if you need any additional clarifications, I'm very happy to see some people here 😄 |
Totally, makes a lot of sense. Thank you. |
Hi Izear
First of all, I am very impressed with your work.
I have a few questions.
The text was updated successfully, but these errors were encountered: