johnameyer / cards-ts

A card game framework and various games in Typescript. The framework allows for bot development and playing card games in the terminal or in a browser.
6 stars 2 forks source link

Clarify serializable vs presentable #63

Closed johnameyer closed 3 years ago

johnameyer commented 3 years ago

Currently presentable (things we should print to the user) is used in place of what should be serializable (things we know by default how to convert to/from JSON), and preferably the former should be a subset of the latter. The deck for example should be serializable but not presentable.