Digitizing Playing Cards
By yourself or with a partner, you will design an encoding system—to encode a deck of playing cards.
Let's think about the different characteristics of playing cards: rank (A-K), suit (Spades, Clubs, Hearts, Diamonds), color (Red, Black), etc.
Printable Playing CardsLinks to an external site.
Given your chosen characteristics, develop a “code” of zeroes and ones that defines each card.
Choose enough defining characteristics of the playing cards so that a combination of them is enough to differentiate each from the other.
Each card in a 52-card deck (no jokers) should be defined in your code.
And no code sequence should refer to more than one card.
It is not necessary for all codes to have a corresponding card.
Test your code alone or with a partner to ensure the guidelines are followed.
Your code. They may use any number of formats, not limited to written rules, a table, or descriptions with examples.
A discussion of whether you chose variable- or fixed-length encoding and what the implications are for robustness and/or efficiency. https://files.projectstem.org/CSP/CSP_Additional_Course_Materials/PlayingCards_Printables.pdf (card deck)