Skip to content

Instantly share code, notes, and snippets.

@sebastiandeutsch
Created July 15, 2013 18:42

Revisions

  1. sebastiandeutsch created this gist Jul 15, 2013.
    3 changes: 3 additions & 0 deletions gistfile1.coffee
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    for roid in asteroids
    for roid2 in asteroids when roid isnt roid2
    roid.explode() if roid.overlaps roid2