Created
January 16, 2019 21:48
-
-
Save ryanorsinger/18804cf3db0ef5b9ba2ee72b2c967332 to your computer and use it in GitHub Desktop.
Build a BlackJack game in Java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure you shuffle the deck prior to play.
Each player has a "hand" and that is updated every time they choose "HIT"