Voting Booth Public Beta Test


log in or register to remove this ad






der_kluge said:
Seems to work ok. What's this about dropping a vote if one of the choices is dropped? Can you explain that?

You have 4 ballots. First ballot is your first choice, Second ballot is your second, and so on. When the computer counts ballots it starts with the first ballots of everyone. If no candidate has a clear majority (50%), then the candidate which got the fewest number of votes is dropped, and the computer recounts - but this time it moves to the second ballot for those persons who have the dropped candidate on their first ballot. Again it checks for a 50% majority and if there is none it drops another candidate (eventually it's going to get one or end up with a tie).

The computer also drops ballots that have a value of "0", which is no vote. This way if someone votes with the third ballot but leaves the 2nd and 1st ballots empty, the system will immediately move to their 3rd ballot.
 


Worked fine for me, selecting choices for all votes; no duplicates. If I could vote again, I'd start trying permutations to ensure that the system remained stable. :)
 

Was it coincidence that each category had 4 votes and 5 possibilities?

Or was that hard-coded for testing purposes?

In other words, does your program dynamically generate the number of choices available, or must you do it manually?
 

Recent & Upcoming Releases

Remove ads

Top