Skip to content

Instantly share code, notes, and snippets.

Created August 17, 2009 12:25
Show Gist options
  • Save anonymous/169097 to your computer and use it in GitHub Desktop.
Save anonymous/169097 to your computer and use it in GitHub Desktop.
# FIXME: You shouldn't do thatway!
def how_to_make_pizza( components, pizza_size )
angle = rand( 2 * Math::PI * 1000 ).to_f / 1000
dist = rand(pizza_size.to_i)
components.each do |component|
Fan << component.move_to( Position.new( dist * cos( angle ), dist * sin ( angle )).release
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment