From refactoring.guru

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)
From refactoring.guru
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)