Darkpingouin / BlackJackGame

Black Jack Game created during the CECS274 Class at CSULB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BlackJackGame

Black Jack Game created during the CECS274 Class at CSULB

alt text

Table of contents

Rules

  • Your program will play the simplified version of Blackjack, which plays at many casinos. The computer will be the dealer and 1 user will play against the dealer. In this game the player/user cannot split the card. The player will be given 100 initially and he must bet a positive number to play. When the player runs out of money the game will stop.
  • The dealer will win when there is a tie. Initially both dealer and player will get 2 cards. If the dealer has 21, he wins. Otherwise if the player has 21, he wins. Both initial cards of the player will be face-up. The dealer first card is face-down and the second card is face-up.
  • When both sides do not have 21 initially, the user gets the chance to get more cards or stand. The user can win by having more points than the dealer but not more than 21. He can also win when dealer draws a total greater than 21. When the user draws a value larger than 21, he looses the bet. When the player stands, it is time for the dealer to play. His first card must turn its face up.
  • The dealer will draw to a value of 17 or larger if his initial value is less than 17. It is a rule of the black jack. When the dealer draws a value larger than 21, the user wins. The dealer wins when there is a tie, or he draws a value higher than the user.

Card Values

Card Value
Ace 1 or 11 (Programm takes best value for the player)
King 10
Queen 10
Jack 10
Ten 10
Nine 9
Eight 8
Seven 7
Six 6
Five 5
Four 4
Three 3
Two 2

Output

output

Sources

You can find the sources here

You can find the test classes here

And you can read the JavaDoc here

UML

blackjackuml

About

Black Jack Game created during the CECS274 Class at CSULB


Languages

Language:Java 100.0%