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

Refactor game and main files #6

Closed johnameyer closed 4 years ago

johnameyer commented 4 years ago

Currently there is not a good separation of concerns between the game and main files.

johnameyer commented 4 years ago

Should enable reactivation of https://github.com/johnameyer/can-i-have-that/blob/master/.github/workflows/ci.yml#L29

johnameyer commented 4 years ago

Upon further review, the Hand class should be stateless and the state contained therein should be moved to the duly created global state class