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

Blackjack #1

Open
Smelton01 opened this issue Apr 11, 2022 · 0 comments · May be fixed by #2
Open

Blackjack #1

Smelton01 opened this issue Apr 11, 2022 · 0 comments · May be fixed by #2

Comments

@Smelton01
Copy link
Owner

Overview

Implement the projects in the blackjack section of gophercises

Deck package for creating deck of cards with optional functions as defined below:

  • An option to sort the cards with a user-defined comparison function. The sort package in the standard library can be used, expects a less(i, j int) bool function.
  • A default comparison function that can be used with the sorting option.
  • An option to shuffle the cards.
  • An option to add an arbitrary number of jokers to the deck.
  • An option to filter out specific cards. Many card games are played without 2s and 3s, while others might filter out other cards. We can provide a generic way to handle this as an option.
  • An option to construct a single deck composed of multiple decks. This is used often enough in games like blackjack that having an option to build a deck of cards with say 3 standard decks can be useful.
@Smelton01 Smelton01 linked a pull request Apr 11, 2022 that will close this issue
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 a pull request may close this issue.

1 participant