Skip to content

Instantly share code, notes, and snippets.

@kureikei
Created Mar 1, 2015
Embed
What would you like to do?
sounds=%w(c o u g h)
cough = sounds.shuffle
count = 0
while (sounds != cough)
cough.shuffle!
print sounds != cough ? "(⊙ ω ⊙)" : " (´・ω・`)ゴホン "
count += 1
(1..count).each{|c| print c != count ? "(⊙ ω ⊙)" : "(⊙ ω ⊙)\n" } if sounds == cough
end
p "咳をしても一人"
p (count*2).to_s + "人の中で一人です"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment