voteliquid / deprecated_thedap

(DEPRECATED REPO) Decentralized Autonomous P̶a̶r̶t̶y̶ BoatyMcBoatface
https://thedap.org
3 stars 1 forks source link

Implement ranked voting #6

Closed rdixit closed 8 years ago

rdixit commented 8 years ago

To be used for proposals. Assume each proposal has unique hash. python

rdixit commented 8 years ago

Ranked voting via Schultz method.

Algorithm:

  1. Tally ballots with rank ordered proposals
  2. Select Schultz Winner
  3. Place winner on sorted leaderboard and remove from ballots
  4. Repeat

This creates a sorted list of Schultz winners.

https://github.com/bradbeattie/python-vote-core

rdixit commented 8 years ago

Actually, the best best way was with proportional Schultz voting. https://modernballots.com/

This is now implemented, just needs to be hooked up to voting module UI

rdixit commented 8 years ago

@dsernst this voting library works, as far as I can tell http://thedap.org/voting

Ballots hardcoded now in: views/voting.py VotingModule 's GET method, but ideally we'd just move all that to the POST request and hookup to user's ranked ballots.