Generalized card classes and game-specific libraries.