Instant Run-Off voting system tallying votes from Google Forms submissions. Used by Mann Robotics in elections.
yarn
Modify election.json to look like this:
{
"spreadsheet": "<ID of Google Sheet>",
"positions": [
"List",
"Of",
"Positions",
"To elect"
],
"threshold": 0.5,
"duplicateCandidates": false
}
Where:
spreadsheet refers to the Google Sheets ID (long string of characters in the URL)
positions contains all positions up for election
threshold is the percentage of votes a candidate has to recieve to be elected
duplicateCandidates refers to whether candidates should be eliminated from all other races (by name) once they are elected to one position
tsc
node out/main.js