Skip to content

Instantly share code, notes, and snippets.

@hanaori
Last active March 22, 2016 03:46
Show Gist options
  • Save hanaori/f926086a5e4ab8c248ed to your computer and use it in GitHub Desktop.
Save hanaori/f926086a5e4ab8c248ed to your computer and use it in GitHub Desktop.
巷で流行りのズンドコきよしを実装してみた
zds = []
loop.lazy.map{ ['ズン', 'ドコ'].sample }.each do |zd|
print zd
zds << zd
break if zds.last(5) == ["ズン", "ズン", "ズン", "ズン", "ドコ"]
end
print " キ・ヨ・シ!"
@hanaori
Copy link
Author

hanaori commented Mar 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment