Tricky, because you need to define the components (hands, face down piles, face up piles, etc.) and the actions that can be done with each of them, and then design ways to handle them all in a UI that isn't overly cumbersome for the specific subset needed to play any given game.
Its a good idea and it is certainly possible, though.