Skip to content

Instantly share code, notes, and snippets.

@nobeans
Last active March 17, 2016 14:30
Show Gist options
  • Save nobeans/4daac76a559c7f2f81fa to your computer and use it in GitHub Desktop.
Save nobeans/4daac76a559c7f2f81fa to your computer and use it in GitHub Desktop.
ずんどこキヨシ vs ずんの飯尾(ラスボス感) 〜声に出して読みたい飯尾〜
// (出典)
// ズンドコキヨシ http://qiita.com/shunsugai@github/items/971a15461de29563bf90
// ずんの飯尾(ラスボス感) http://alfalfalfa.com/articles/139689.html?utm_source=alfalfa&utm_medium=kanren_image2
def random = new Random()
// 飯尾が強すぎるので「ずん」を恣意的に水増ししてみる
def words = [["ずん"] * 5, "どこ", "の", "飯尾"].flatten()
def buf = ""
while (true) {
def word = words[random.nextInt(words.size())]
buf += word
print word
if (word =~ /どこ$/ || word =~ /飯尾$/) {
println ""
if (buf =~ /ずんずんずんずんどこ$/) {
println "キ・ヨ・シ!"
break
}
if (buf =~ /ずんの飯尾$/) {
println "いや~お見事お見事"
break
}
buf = ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment