Created
March 16, 2016 04:19
-
-
Save slightair/37d89df1cd85cea2fa63 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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