Skip to content

kylef-archive/CardKit

Repository files navigation

CardKit

CardKit provides model structures for building playable card games.

Usage

Creating a card

let card = Card(suit: .Heart, value: .Ace)

Creating a deck of cards

let deck = Card.all()

Shuffling (in-place)

deck.shuffle()

New shuffled array of cards

let shuffledDeck = deck.shuffled()

License

CardKit is licensed under the BSD license. See LICENSE for more info.

About

Model structures for building playable card games in Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages