Created
July 10, 2014 01:03
-
-
Save rodrickbrown/aeb2be94a7917c78d811 to your computer and use it in GitHub Desktop.
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
func dealTiles(n: Int) -> [Dictionary<String, AnyObject>]{ | |
var tiles: [Dictionary<String, AnyObject>] = [] | |
for i in 0...n-1 { | |
tiles.append(self.bag[i]) | |
self.bag.removeAtIndex(i) | |
} | |
//bag[bag.startIndex] | |
return tiles | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment