Skip to content

Model structures for building playable card games in Swift

License

Notifications You must be signed in to change notification settings

carabina/CardKit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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 suffledDeck = deck.shuffled()

Installation

CocoaPods or Conche are the recommended and supported installation methods.

pod 'CardKit'

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

  • Swift 100.0%