Open lukepighetti opened 5 years ago
Thanks for writing this! I enjoyed hearing about it on the radio and reading it.
Hey I did a PHP version @ thumbtech/me_cd2_rcv_counter .
One thing I wanted to throw out there is that the official procedure does not include the idea of "finish" when top vote-getter exceeds 50% (which I also did), rather continued elimination down to 2 candidates. Functionally equivalent outcomes, but probably best to run per rules.
@thumbtech Thank you, I have updated the code to reflect this (you are correct that they produce exactly the same outcome). Although I planned to not implement "batch elimination" in order to demonstrate its equivalence with instant runoffs, I agree that running instant runoffs until only two candidates remain (instead of running instant runoffs until one candidate garners more than 50% of votes) even more transparently lays out the instant runoff process.
District 2 voter here, was thinking about doing this in a d3.js notebook, looks like you beat me to the punch. 😄
Keep up the good work!