Skip to content

Applying Refactoring Technique: Replace Data Value with Object #22

Description

@ManzanillaSebastian

Using maxCards as an integer in combination with other variables suggests that it could be encapsulated in a class that handles limits and logic related to deck size. The advantage of applying this technique is: encapsulating the deck size logic, reducing the responsibilities of the Deck class.
Captura de pantalla 2025-01-12 202623
Captura de pantalla 2025-01-12 202934
Captura de pantalla 2025-01-12 203008

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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