変数(var)は使用しない縛りで
import Foundation
let zundoko = ["ズン", "ドコ"]
let ex = ["ズン", "ズン", "ズン", "ズン", "ドコ"]
func zunzunzundoko(list: [String])
{
if list == ex {
print("キ・ヨ・シ!")
return
}
let t = zundoko[Int(arc4random_uniform(2))]
print(t)
zunzunzundoko(list[1...4] + [t])
}
zunzunzundoko(["", "", "", "", ""])
普通?