Skip to content

DeltechJavaAcademy/CLI-Blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

CLI-Blackjack

You will create a Blackjack game in the command line.

Part One

Requirements

  • The system should store the deck as a list of ints from 0-51
  • The system should deal two random cards from the deck to both the dealer and player
  • The user can view one of the cards the dealer was dealt
  • The user can view the two cards they were dealt
  • The user can HIT or STAND until they BUST or choose to STAND
  • The user receives another card if they choose to HIT
  • The system deals the dealer cards until they BUST, cards total 17+, or they beat the players hand
  • The user can choose to play again or quit

Mock Ups

Dealer Hand: A of D Your Hand: 2 of C, 3 of H

Your Move: HIT

Dealer Hand: A of D Your Hand: 2 of C, 3 of H, 10 of H

Your Move: HIT

Dealer Hand: A of D Your Hand: 2 of C, 3 of H, 10 of H, K of S

BUST! Dealer Wins! Play again (y/n): y

Dealer Hand: K of C Your Hand: 10 of C, 9 of S

Your Move: STAND

Dealer Hand: A of D, 6 of D, 7 of H Your Hand: 10 of C, 9 of S

Dealer Bust! You win! Play again (y/n): n

Part Two

Requirements

All Part one requirements plus
  • The system should check for bad user input
  • The system should represent Move as an Enum
  • The system asks the user to HIT, STAND, DOUBLE, or SPLIT
  • The user receives another card if they choose to HIT or DOUBLE
  • The user can split if they are dealt two cards of the same rank
  • The system splits the user's hand into two hands if they split
  • Bonus: The system should represent a card as a Suit and Rank (Requires Classes)
  • Bonus: The system should represent Suit and Rank as Enums

Mock Ups

Dealer Hand: A of D Your Hand: 2 of C, 9 of H

Your Move: DOUBLE

Dealer Hand: A of D Your Hand: 2 of C, 9 of H, 7 of H

Your Move: STAND

Dealer Hand: K of D, 7 of D Your Hand: 2 of C, 9 of H, 7 of H

Dealer must Stand! You win! Play again (y/n): y

Dealer Hand: K of D Your Hand: 9 of C, 9 of H

Your Move: SPLIT

Dealer Hand: K of D Your First Hand: 9 of C Your Second Hand: 9 of H

Your Move: HIT

Dealer Hand: K of D Your First Hand: 9 of C, J of S Your Second Hand: 9 of H

Your Move: STAND

Dealer Hand: K of D Your First Hand: 9 of C, J of S Your Second Hand: 9 of H, 6 of S

Your Move: HIT

Dealer Hand: K of D Your First Hand: 9 of C, J of S Your Second Hand: 9 of H, 6 of S, 9 of S

Your Second Hand Bust!

Dealer Hand: K of D, 7 of D Your First Hand: 9 of C, J of S Your Second Hand: 9 of H, 6 of S, 9 of S

Dealer must Stand! You win! Play again (y/n): n

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published