Skip to content
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

[SDK] - Add "Ranked voting" type #146

Open
5 tasks
jpaulet opened this issue Feb 5, 2024 · 0 comments
Open
5 tasks

[SDK] - Add "Ranked voting" type #146

jpaulet opened this issue Feb 5, 2024 · 0 comments

Comments

@jpaulet
Copy link
Member

jpaulet commented Feb 5, 2024

As organizer, I want to create different voting types, one of the most used one is "ranked voting" (Linear Weighted choice at the ballot protocol). In this voting type, the voter orders the different options by rank, from the 1st to the Nth option.

Then, there are two different results interpretation, we will start with the first one:

  • Borda count: Each option is assigned with a specific score (1st option == N-1 score, 2nd option == N-2 score... last option == 0 score). The option with higher score, wins.

In this voting type, the voter must send the complete order (1,2,3,4) and (1,3,4) is not valid as the 2 is missing.

Tasks:

  • Review the "Ballot protocol" documentation and implement the "Ranked Voting" in the SDK
  • Define the needed parameters (maxCount,minValue,maxValue...)
  • Review if we need to add some other extra parameter
  • Return the results
  • Test it
@jpaulet jpaulet added this to the Sprint 3 milestone Feb 5, 2024
@jpaulet jpaulet changed the title Add "Ranked voting" type [SDK] - Add "Ranked voting" type Feb 6, 2024
@jpaulet jpaulet mentioned this issue Feb 8, 2024
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants