May-18-2020, 03:39 AM
If you have, or can get your hands on a copy of Fluent Python, there's a very elegant way to define card decks with examples of various operations such as shuffle, keep track of what's been played, and probably some comparisons as well.
Worth a look if you can get your hands on a copy.
Worth a look if you can get your hands on a copy.