Skip to content

Cards are not random #14

@andreldm

Description

@andreldm

The fix should be in file src/card/card-store.ts.
Instead of using two states (FREE, USED), a third one should be introduced: USING.
So the card lifecycle will be: FREE -> (getNewCard) USING -> (discard) USED
Once there is no free card, the getNewCard method should reset all USED to FREE and shuffle them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions