Skip to content

Refactor engine and state management to be testable #24

Description

@PoeppingT

Is your feature request related to a problem? Please describe.
I want to test win conditions and verify engine process through a game (basically test CribbageGame as is), but currently all logic is housed with a run() function.

Additionally, state management is wonky as is today. If someone wins, the state is updated to "FINISHED", but sometimes doesn't always take effect immediately.

We need to test each of these core functions of the cribbage game to ensure that no large changes are made. It would be good to be able to test interactions with the UI as well.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

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