Skip to content

Instantly share code, notes, and snippets.

@MrMMorris
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrMMorris/0aa77315560ae0ab0073 to your computer and use it in GitHub Desktop.
Save MrMMorris/0aa77315560ae0ab0073 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
$happiness = File.read("/human/organs/heart").to_i
$sadness = File.read("/human/organs/brain").to_i
class Friend
def hug
$happiness += 1
end
end
zaal = Friend.new
while $happiness < $sadness do
zaal.hug
puts ":|"
end
puts ":)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment