Skip to content

Instantly share code, notes, and snippets.

@mpelzsherman
Created May 23, 2014 19:49
Show Gist options
  • Save mpelzsherman/c7e27fb7459abb0d5652 to your computer and use it in GitHub Desktop.
Save mpelzsherman/c7e27fb7459abb0d5652 to your computer and use it in GitHub Desktop.
HappyEndingOrderingStrategy
class HappyEndingOrderingStrategy
def order(array)
array[1..-1].shuffle << array.last
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment