Skip to content

Instantly share code, notes, and snippets.

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