Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add raffle logic to Event class #376

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

courte
Copy link
Member

@courte courte commented Apr 3, 2015

Now an event can return its own raffle winners from the command line by:

  • creating raffle tickets based on user engagement
  • selecting raffle winners
  • printing them in a handy-dandy list

This is the result of the method run with some test data:

screenshot 2015-04-03 11 43 47

winners = []
tickets = create_raffle_tickets

num_winners.times { winners << select_raffle_winner(tickets) } if tickets.present?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [86/80]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants