Created
March 22, 2013 13:55
-
-
Save jordanpoulton/5221435 to your computer and use it in GitHub Desktop.
Makers Academy Massages
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
# 12 slots, 2 for winners, 1 for teachers, 7 cohort one, 4 in cohort 2 | |
cohort_1 = [:Michelle, :Max, :Jordan, :Pat, :Vish, :Rich, :Alex, :Mark] | |
benched = [:RobB, :Chris] | |
cohort_2 = [:Zahid, :Aled, :Dario, :Sam, :Ruben] | |
teachers = [:Evgeny, :Leo, :RobJ, :Ben, :Ana ] | |
everyone = cohort_1 + benched + cohort_2 + teachers | |
students = cohort_1 + cohort_2 | |
# 12 spots total | |
# 2 for each winner of comp | |
# 2 for teachers | |
# Rest split between students | |
massage_receivers = [] | |
massage_receivers << teachers.shuffle!.pop | |
massage_receivers << teachers.shuffle!.pop | |
while massage_receivers.count<12 | |
massage_receivers << students.shuffle!.pop | |
end | |
# All winners are now in massage_Receivers | |
order_of_ceremonies = massage_receivers.shuffle! | |
puts "This is the order of massages:" | |
order_of_ceremonies.each do |massagee| | |
puts massagee | |
end | |
#create loser group by removing massage_Receivers from everyone | |
losers = everyone - massage_receivers | |
puts"---------" | |
puts "The following people missed out this week:" | |
losers.each do |loser| | |
puts loser | |
end | |
# TODO add later | |
def stack_overflow_winners | |
# massage_receivers << winner_stack_overflow_comp_cohort_1 | |
# massage_receivers << winner_stack_overflow_comp_cohort_2 | |
# winner_stack_overflow_comp_cohort_1 = | |
# cohort_1.delete(winner_stack_overflow_comp_cohort_1) | |
# winner_stack_overflow_comp_cohort_2 = | |
# cohort_2.delete(winner_stack_overflow_comp_cohort_2) | |
end | |
This is the order of massages: | |
Leo | |
Ruben | |
Dario | |
Zahid | |
Aled | |
Jordan | |
Sam | |
Evgeny | |
Max | |
Rich | |
Mark | |
Alex | |
--------- | |
The following people missed out this week: | |
Michelle | |
Pat | |
Vish | |
RobB | |
Chris | |
RobJ | |
Ben | |
Ana |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment