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

Version 0.0.3 - Bug fixes and DeckFactory added #3

Merged
merged 9 commits into from
Feb 10, 2023
Merged

Conversation

lyudaio
Copy link
Owner

@lyudaio lyudaio commented Feb 10, 2023

Library Logo

Version 0.0.3 comes with the following changes in this Pull Request and addresses opened issue #2

Changes

  • Adds the DeckFactory class which is used to create and manage multiple decks of cards. This class provides functionality for creating and keeping track of multiple Deck objects, each of which can be shuffled, dealt from, and managed independently. The factory allows you to easily create, shuffle, deal, and manage a collection of decks.

  • Modifies the shuffle() method to use a new unique SecureRandom seed each time it is called.

  • Modifies the getCards() method in the Hand class to return a modifiable list instead of unmodifiable

  • Fixes a bug reported in Issue Logic for some Deck tests seems flawed #2 where testShuffle() and testFindCard() were not checking the proper logic (e.g. checking index instead of the cards themselves.)

@lyudaio lyudaio linked an issue Feb 10, 2023 that may be closed by this pull request
@lyudaio lyudaio added bug Something isn't working enhancement New feature or request labels Feb 10, 2023
@lyudaio lyudaio self-assigned this Feb 10, 2023
@lyudaio lyudaio merged commit 373b108 into main Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logic for some Deck tests seems flawed
2 participants