Guest User

Untitled

a guest
Jul 19th, 2013
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.30 KB | None | 0 0
  1. floor = [["blank", "blank", "blank"],
  2.          ["gummy", "blank", "blank"],
  3.          ["blank", "blank", "blank"]]
  4.  
  5. def search(plan)
  6. end
  7.  
  8. candy = search(floor) do
  9.   floor.each do |row|
  10.     row.each do |tile|
  11.       return tile if tile == "jawbreaker" || tile == "gummy"
  12.     end
  13.   end
  14. end
  15. p candy
Advertisement
Add Comment
Please, Sign In to add comment