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
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: