Single Transferable Vote Counter

A webapp meant to demonstrate angular service module stvCounter.js, and the STV counting method in general. This uses the Droop method for calculating the quota, and the Wright method for determining the distribution of surplus votes.


Ballot Input

How should ballots be entered?

A ballot should be entered with most to least desired candidates. Candidates should be separated by one line, and ballots should be separated by two lines. For example...

{{"Alice\nBob\nCarl\n\nCarl\nAlice\nBob"}}

will enter two ballots: one with Alice, Bob, Carl (Alice being most desired), and another with Carl, Alice, Bob (Carl being most desired).


Examples

Alright, I'll generate some random ballots for you, but I need some parameters.

Elected

Seats - {{ctrl.seats}}
There was a tie. View the rounds for more details.
{{elected}}

Rounds

Quota - {{ctrl.quota}}
Round {{$index + 1}}
{{candidate}}
{{value.votes | number}}
Eliminated Elected

Ballots

Votes Cast - {{ctrl.ballots.length}}
{{$index + 1}} - {{candidate}}