Last active
March 22, 2016 03:46
-
-
Save hanaori/f926086a5e4ab8c248ed 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
zds = [] | |
loop.lazy.map{ ['ズン', 'ドコ'].sample }.each do |zd| | |
print zd | |
zds << zd | |
break if zds.last(5) == ["ズン", "ズン", "ズン", "ズン", "ドコ"] | |
end | |
print " キ・ヨ・シ!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ズンドコキヨシまとめ