View difference between Paste ID: siATx4iq and abqaNdLp
SHOW: | | - or go back to the newest paste.
1
def peel(vegetable_with_layers)
2-
  if vegetable_with_layers[0] == 'core'
2+
	swamp = ["WHAT ARE YOU DOING IN MY SWAMP", "THIS IS MY SWAMP", "THERE IS NO OUR", "STOP SINGING"]
3-
    # base case: have I reached the core?
3+
	if vegetable_with_layers[0] == 'core'
4-
    vegetable_with_layers[0]
4+
		# base case: OGRES HAVE LAYERS
5-
  else
5+
		puts "NOW WHY DID YA HAVE TA GO AND MAKE ME ANGRY"
6-
    # not the core... remove one layer
6+
		vegetable_with_layers[0]
7-
    peel(vegetable_with_layers[0])
7+
	else
8-
  end
8+
		# ORGERS ARE LIKE ONIONS
9
		puts swamp[rand(3)]
10-
 
10+
		peel(vegetable_with_layers[0])
11-
onion = [[['core']]]
11+
	end
12-
peel(onion)
12+
13
14
onion = [[[['core']]]]
15
peel(onion) #NO