Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- floor = [["blank", "blank", "blank"],
- ["gummy", "blank", "blank"],
- ["blank", "blank", "blank"]]
- def search(plan)
- end
- candy = search(floor) do
- floor.each do |row|
- row.each do |tile|
- return tile if tile == "jawbreaker" || tile == "gummy"
- end
- end
- end
- p candy
Advertisement
Add Comment
Please, Sign In to add comment