Voting stuff test harness
This is an attempt to show "pretty" output for a condorcet election. the important thing is the display of a bar graph, which most Condorcet methods don't lend themselves to.

The election shown comes from Wikipedia's 2008 board election, which was a Condorcet (Shulze) election.

You may edit candidate names in the "Candidate Names" box, then click "load names" to load the new or modified names. After doing so, the two pink "guide boxes" will be recreated to reflect the new number of candidates.

You may also edit the pairwise matrix data in the box labeled "Pairwise Matrix". The number of pairs must match the number of entries in the guide box. When you click "load matrix", the new data will be entered and the matrix redrawn.

You may enter ballots in the box labeled "Ballots", then click "submit ballots" to send them to the displayed matrix/results. (note: this will bypass the "Pairwise Matrix" text field, leaving it unchanged) You can click "samples" to have it make up some ballots for you. Note that they are not entirely random, as that would tend to make for a pretty uninteresting display. If you click "loop", it will make random ballots and submit them in a loop.

All processing is done in javascript, using the files TestHarness.js, VoteOutput.js, VoteUtils.js. CondorcetScore.js, and Ballots.js,

Candidate names:
Pairwise matrix:
Ballots:

© 2005 Rob Brown