Skip to content

Instantly share code, notes, and snippets.

@daegren
Created September 18, 2015 20:28
Show Gist options
  • Save daegren/1a9699d99da7b7ca7b42 to your computer and use it in GitHub Desktop.
Save daegren/1a9699d99da7b7ca7b42 to your computer and use it in GitHub Desktop.
class Universe
while energy
decay
star = stars.pop
if star.mass > KASSHENDAR_LIMIT
BlackHole.new(star)
Notification.new('woah', Neo)
end
end
if energy < 0
entropy * -1
restart_universe
end
# end TODO: Implement end of the universe
class TheOne
def god?
true
end
end
class Neo < TheOne
# override
def god?
rand(0, 1)
end
def self.knows_kung_fu?
true
end
def self.can_jump?
false
end
end
class BlackHole
def initialize
@_internal = new Universe
gravity = Infinity
end
end
class Pulsar
while(true)
spin
pulse
end
end
BATMAN = Mammal.new(parents: 0)
ROBIN = Mammal.birth(BATMAN)
class Mammal
def die
fail
end
def self.birth(parent)
self = parent.new_child
while (parent.length == 0)
BATMAN
end
end
end
class Vegetable
def dont_die?
begin
end
end
class Mineral
def exists?
true || true && true ^ true # being a rock is easy
end
end
class WoodChuck extends Mammal
def chuck()
end
end
class Wood extends Vegetable
end
how much(Wood) could_a?(WoodChuck).chuck?
if_a?(WoodChuck).could_chuck Wood do
chuck_wood = chuck_wood++
end
BUT if a WoodChuck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment