Model structures for building playable card games in Swift
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources
Tests/CardKitTests
.gitignore
.travis.yml
CardKit.podspec.json
LICENSE
Package.swift
README.md

README.md

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.