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

Refactor card insertion logic #62

Conversation

Superlagg
Copy link
Collaborator

This pull request refactors the card insertion logic in the codebase. It introduces new procedures prevent_card_insertion, InsertSingleCard, InsertCardHand, InsertSingleCardToCard, InsertCardToHand, and prevent_add_card_to_hand to handle the card insertion process. These procedures ensure that the user is prompted for confirmation before adding a card to a deck or a hand. Additionally, the code now checks if the cards being added belong to the same deck before allowing the insertion. This improves the user experience and prevents mixing cards from different decks.

@Tk420634 Tk420634 merged commit 2d5f460 into ARF-SS13:master Aug 17, 2024
5 of 6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants