Skip to content

Instantly share code, notes, and snippets.

@rodrickbrown
Created July 10, 2014 01:03
Show Gist options
  • Save rodrickbrown/aeb2be94a7917c78d811 to your computer and use it in GitHub Desktop.
Save rodrickbrown/aeb2be94a7917c78d811 to your computer and use it in GitHub Desktop.
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