Skip to content

Instantly share code, notes, and snippets.

@ryanorsinger
Created January 16, 2019 21:48
Show Gist options
  • Save ryanorsinger/18804cf3db0ef5b9ba2ee72b2c967332 to your computer and use it in GitHub Desktop.
Save ryanorsinger/18804cf3db0ef5b9ba2ee72b2c967332 to your computer and use it in GitHub Desktop.
Build a BlackJack game in Java
Build a command line game of BlackJack in Java
Start with a Card class. Each card object should have a face value and a suit property.
Next, build an array of 52 cards and store it as a variable called "deck".
Add functionality for a user to play the computer.
Rules of blackjack apply.
The computer should follow dealer rules.
See https://en.wikipedia.org/wiki/Blackjack for more details.
@ryanorsinger
Copy link
Author

Make sure you shuffle the deck prior to play.

Each player has a "hand" and that is updated every time they choose "HIT"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment