Created
March 24, 2016 11:05
-
-
Save mknkisk/6bf2517eff8b75d8edcb to your computer and use it in GitHub Desktop.
ZUN ZUN ZUN ZUN DOKO KIYOSHI
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
module ZunDoko | |
Z = 'ズン' | |
D = 'ドコ' | |
TARGET = [Z, Z, Z, Z, D] | |
def self.kiyoshi(arr=[]) | |
arr.shift if arr.size > 4 | |
arr << [Z, D].sample | |
return "#{arr.join("\s")} #{'キ・ヨ・シ!'}" if arr == TARGET | |
kiyoshi(arr) | |
end | |
end | |
ZunDoko.kiyoshi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment