Skip to content

Instantly share code, notes, and snippets.

@slightair
Created March 16, 2016 04:19
Show Gist options
  • Save slightair/37d89df1cd85cea2fa63 to your computer and use it in GitHub Desktop.
Save slightair/37d89df1cd85cea2fa63 to your computer and use it in GitHub Desktop.
import UIKit
enum ズンドコ: UInt32 {
case ズン, ドコ
}
var list = [ズンドコ]()
while list != [.ズン, .ズン, .ズン, .ズン, .ドコ] {
let zundoko = ズンドコ(rawValue: arc4random_uniform(2))!
list.append(zundoko)
if list.count > 5 {
list.removeAtIndex(0)
}
print(zundoko)
}
print("キ・ヨ・シ!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment