Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def losses
- (prompts_on_the_left.collect(&:votes_count).sum + prompts_on_the_right.collect(&:votes_count).sum)
- end
- def wins
- votes_count
- end
- def score
- (wins.to_f / (wins + losses) ) * 100
- end
Add Comment
Please, Sign In to add comment