Skip to content

Instantly share code, notes, and snippets.

@Bashta
Last active December 9, 2016 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bashta/c85b816d1ad486fc2205ee8fee95a9c4 to your computer and use it in GitHub Desktop.
Save Bashta/c85b816d1ad486fc2205ee8fee95a9c4 to your computer and use it in GitHub Desktop.
func dealCards() {
for _ in deck.cards {
for player in players {
player.addCard(card: deck.drawCard())
if deck.cards.count == 0 {
return
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment