Skip to content

Instantly share code, notes, and snippets.

@kureikei
Created March 1, 2015 21:52
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 kureikei/b204ef30603480a2f64d to your computer and use it in GitHub Desktop.
Save kureikei/b204ef30603480a2f64d to your computer and use it in GitHub Desktop.
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