This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
beginning = Time.now | |
def doRound (votePools, votes, round) | |
votes.each do |voter| | |
#check to see if the votepool contains the candidate | |
voter.each do |vote| | |
if votePools.has_key?(vote) | |
votePools[vote].push(voter) | |
break | |
end | |
end |