Skip to content

Pieces shouldn't be Observers #32

@eeoooue

Description

@eeoooue

From refactoring.guru

image

Our set of Pieces is known, so we probably don't need the Observer pattern here.
We're currently just using the Observer pattern to refresh the possible moves for each piece after every turn, but we could just do this with straightforward for loops (for each piece on the board, update)

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