Last active
December 9, 2016 01:04
-
-
Save Bashta/c85b816d1ad486fc2205ee8fee95a9c4 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 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