Tuesday, May 12, 2015

Personal Code 5/12/15

Last weekend 5 of my lady friends and I went to Prescott. 
                                   
                                                        To maternize and be merry...
until we just couldn't take it anymore.




And it got hanging-from-the-rafters cray up in our cabin.





largely because of the creative-sparkin-so-not-PC-silliness that is cards against humanity.





So my personal code for today is a mini tribute to that game.
   
 Written in Ruby:

#determine the number of players

#deal 5 white cards out to eac player
# rand (0...black_cards.length) 5.times
#create an array for each player to store their "hand"
#if 2 / if 3/ if 4... deal cards num_players .times

#randomly select a black card (random number generator).
# rand (0...black_cards.length)

#delete black_cards from array as they are used
#black_cards -= black_cards[i]

#identify how many white cards are needed to play per black card

#player selects card(s) to play. -- assign multiple choice values to each card in the players hand.

#each player plays his/ her cards

#draw more cards to replinish hand.

number_of_players = 0
while number_of_players < 2 || number_of_players > 4
puts "enter a number of players between 2 and 4"
number_of_players = gets.chomp.to_i
end

black_cards = ["That awkward moment when you realize. *_* is/are actually *_*", "Cheerios taste even better with *_*", "well why didn't you just tell me you were a *_*", "if it wasn't for *_* I never would have met your mother"]

white_cards = ["rabbit pellets", "A strong propensity for shitting myself", "Quantum physics", "A collection of Famous womens' used tampons.", "dry humping", "doing the hustle", "screaming obsenities every time I hear the song Where Its At by Beck"] 

No comments:

Post a Comment