package
0.0.0-20200526015148-b343531734ec
Repository: https://github.com/fakorede/learning-golang.git
Documentation: pkg.go.dev

# README

Game of Cards

A program modelled after a game of cards.

Features

newDeck - Create and return a list of playing cards. Essentially an array of strings.

print - Log out the contents of a deck of cards.

shuffle - Shuffles all the cards in a deck.

deal - Create a 'hand' of cards.

saveToFile - Save a list of cards to a file on the local machine.

newDeckFromFile - Load a list of cards from the local machine.

Run Program

$ go run main.go deck.go

Run Tests

$ go test