Skip to content

Instantly share code, notes, and snippets.

@fono09 fono09/o_den.rb
Last active Dec 7, 2016

Embed
What would you like to do?
オデン🍢
o_den = [['',0.25],['デン',0.5]]
o_den_queue = []
o_den_emoji = '🍢'
while true
case o_den_queue[-1]
when o_den[0] then
sleep o_den[0][1]
when o_den[1] then
sleep o_den[1][1]
end
o_den_queue.push(o_den.sample)
o_den_queue.shift if o_den_queue.length > o_den.length
print o_den_queue[-1][0]
print o_den_emoji + "\n" if o_den_queue == o_den
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.