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

Add getter #36

Open
ManuelBoesl opened this issue Nov 16, 2022 · 0 comments
Open

Add getter #36

ManuelBoesl opened this issue Nov 16, 2022 · 0 comments
Assignees
Labels
bug Something isn't working gamelogic

Comments

@ManuelBoesl
Copy link
Owner

Currently we use the properties directly in many cases, which could change the property even though we don't want to. To prevent this, we need getters (and setters).
E.g. change help_list = computer.cards to help_list = computer.get_cards().
Now we have a copy and not the cards directly.
Hopefully this fixes some strange problems i ran into during making the game_logic

@ManuelBoesl ManuelBoesl added bug Something isn't working gamelogic labels Nov 16, 2022
@bobby-robotics bobby-robotics self-assigned this Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gamelogic
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants