Skip to content

mgoldsmith1/DeckOfCards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

screenshot codecov

Deck-Of-Cards

In a casino, all the playing cards got mixed up, and some of them got lost. You have to collect as many full decks as possible.

You get N mixed up Jeu de Cartes (French playing cards) as your input.

The cards are of the following ranks: 2, 3, 4, 5, 6, 7, 8, 9, T, J, Q, K, A

The four suits are: S - Spade (♠), C - Club(♣), H - Heart(♥), D - Diamond(♦)

The cards are given using their rank followed by their suit:

2 of Spades: 2S
Ace of Clubs: AC
10 of Hearts: TH

Write a function that will accept an array of cards and return the number of full decks contained in the array.

Testing

I am using pytest for Unit Testing in Python.

Coverage

Test coverage is verified by Codecov via Travis CI.