deed:
> How is a playing card's rank represented most elegantly in code?
Maybe with an enum?
enum Card { J, Q, ...}
If you have to store many of them then maybe giving them a size 
of one byte is better:
enum Card : ubyte { Ace, Two, ..., Q, ...}
Bye,
bearophile