-
-
Save kureikei/b204ef30603480a2f64d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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