Skip to content

Instantly share code, notes, and snippets.

@derickr
Created April 16, 2024 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derickr/d54b33949d69ae12553ace8af4758934 to your computer and use it in GitHub Desktop.
Save derickr/d54b33949d69ae12553ace8af4758934 to your computer and use it in GitHub Desktop.
PHP 8.4 Release Manager Election — STV
$ php elect.php 'php_8.4_rm_*' 2 "Y Hamada" "C Buckley" "S Takamachi" "M Beccati"
Reading from:
- php_8.4_rm_1st_preference.doodle
- php_8.4_rm_2nd_preference.doodle
- php_8.4_rm_3rd_preference.doodle
- php_8.4_rm_4th_preference.doodle
Candidates (in order of ballot):
Y Hamada — C Buckley — S Takamachi — M Beccati
Votes:
Vote # 0: M Beccati — S Takamachi — C Buckley — Y Hamada
Vote # 1: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote # 2: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote # 3: S Takamachi — C Buckley — M Beccati — Y Hamada
Vote # 4: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote # 5: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote # 6: C Buckley — S Takamachi — M Beccati
Vote # 7: M Beccati — S Takamachi — C Buckley — Y Hamada
Vote # 8: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote # 9: M Beccati — C Buckley — S Takamachi — Y Hamada
Vote #10: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote #11: S Takamachi — C Buckley — M Beccati — Y Hamada
Vote #12: S Takamachi — M Beccati — C Buckley
Vote #13: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote #14: M Beccati — S Takamachi — C Buckley — Y Hamada
Vote #15: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote #16: S Takamachi — M Beccati — C Buckley — Y Hamada
Votes: 17
Candidates: 4
Seats: 2
Quorum: 6
Round #1
--------
Vote count for 'S Takamachi' and 'M Beccati' is the same, so use first preference to disambiguate.
Tally:
Candidate 'C Buckley': 9 → 1 2 4 5 6 8 10 13 15
Candidate 'S Takamachi': 4 → 3 11 12 16
Candidate 'M Beccati': 4 → 0 7 9 14
Candidate 'Y Hamada': 0 →
Candidate 'C Buckley' is over quorum (6) with 9 votes, redistributing.
Votes:
Vote # 0: M Beccati — S Takamachi — C Buckley — Y Hamada
Vote # 1: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote # 2: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote # 3: S Takamachi — C Buckley — M Beccati — Y Hamada
Vote # 4: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote # 5: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote # 6: C Buckley — S Takamachi — M Beccati
Vote # 7: M Beccati — S Takamachi — C Buckley — Y Hamada
Vote # 8: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote # 9: M Beccati — C Buckley — S Takamachi — Y Hamada
Vote #10: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote #11: S Takamachi — C Buckley — M Beccati — Y Hamada
Vote #12: S Takamachi — M Beccati — C Buckley
Vote #13: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote #14: M Beccati — S Takamachi — C Buckley — Y Hamada
Vote #15: C Buckley — S Takamachi — M Beccati — Y Hamada
Vote #16: S Takamachi — M Beccati — C Buckley — Y Hamada
- Vote 1 has C Buckley as current preference, and as next preference S Takamachi.
- Vote 2 has C Buckley as current preference, and as next preference S Takamachi.
- Vote 4 has C Buckley as current preference, and as next preference S Takamachi.
- Vote 5 has C Buckley as current preference, and as next preference S Takamachi.
- Vote 6 has C Buckley as current preference, and as next preference S Takamachi.
- Vote 8 has C Buckley as current preference, and as next preference S Takamachi.
- Vote 10 has C Buckley as current preference, and as next preference S Takamachi.
- Vote 13 has C Buckley as current preference, and as next preference S Takamachi.
- Vote 15 has C Buckley as current preference, and as next preference S Takamachi.
Next preferences:
S Takamachi → 9 * 3/9: 3
- Pick 3 random votes from
#1, #2, #4, #5, #6, #8, #10, #13, #15 to transfer:
#1, #2, #6
Distributing ballot #1 from C Buckley to S Takamachi
Distributing ballot #2 from C Buckley to S Takamachi
Distributing ballot #6 from C Buckley to S Takamachi
Exhausted → 0
Tally:
Candidate 'C Buckley': 6 → 4 5 8 10 13 15
Candidate 'S Takamachi': 7 → 3 11 12 16 1 2 6
Candidate 'M Beccati': 4 → 0 7 9 14
Candidate 'Y Hamada': 0 →
Candidate 'C Buckley' has reached quorum, and is therefore elected
Candidate 'S Takamachi' has reached quorum, and is therefore elected
Tally:
Candidate 'M Beccati': 4 → 0 7 9 14
Candidate 'Y Hamada': 0 →
=================================
ELECTED:
C Buckley
S Takamachi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment