You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: