Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applying Refactoring Technique: Replace Data Value with Object #22

Open
ManzanillaSebastian opened this issue Jan 13, 2025 · 0 comments

Comments

@ManzanillaSebastian
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant