Condorcet voting is sometimes a touch difficult to understand, so I have made this site.
The most important part of this site is my script which takes in text describing a Condorcet election and reports the results.
My script takes in a text file which has two parts. First a part describing the candidates, then a list of votes. An example is posted here. One goes to the script and either selects an existing textfile to interpret or pastes in a text file of one's own to interpret.
For more on how to write input the script will understand, go here.
Condorcet voting is a system of preferential voting, so one cannot simply add up the number of votes "for" a candidate-- one has to keep track of people's preferences. The most efficient way to do this is to make a preference matrix. Below is an example:
Candidate | Votes preferring Candidate to Alice | Votes preferring Candidate to Bob | Votes preferring Candidate to Charlie |
---|---|---|---|
Alice | 2 | 2 | |
Bob | 1 | 2 | |
Charlie | 1 | 1 |