Create a Blackjack poker game with a GUI interface
$30-250 USD
完了済み
投稿日: 約9年前
$30-250 USD
完了時にお支払い
Simplified Blackjack
There is only one player (one Hand).
The player starts out with two cards in her hand. The two cards is dealt from a shuffled Deck.
Player has choice to hit or stay.
If the player decides to hit, player will recieve an extra card.
If the total values (more on this below) of her hand exceeds 21 (busted), then the game is over.
If the total value does not exceed 21, then player is given another chance to hit or stay (Step 3).
If player decides to stay in step 3, the game is over and the player earns the score of total value of her hand.
Once the game is over, the player can decide to player again (Step 2).
Value of each Cards
Ace: 11
Jack, Queen, King: 10
2~10: Their rank value
Value of a Hand
Value of a Hand is a simple sum of the value of each Cards in the Hand.
Note, in real Blackjack, if the total value of a Hand that includes an Ace exceeds 21, then the value of the Ace becomes 1. However for this project, this case maybe omitted.
User Interface
You must implement the Simplified Blackjack using a Graphical User Interface (GUI). The GUI should have at least the following functionalities:
Display the cards of player's current hand.
Display the current value of player's hand.
Display if the game is over or not.
Buttons to decide between Hit or Stay if the game is not over.
Button to restart the game if the game is over.
Calculation of value of Ace, depending on the context of the hand.
If the total value of a Hand exceeds 21 and the Hand contains an Ace, then the value of the Ace becomes 1, thus allowing the player to continue play.
Implementing a computer dealer to play against (dealer is a computer player).
The game's objective changes to getting the better score than the dealer.
The player's cards are dealt first and player gets to decide to Hit or Stay first.
Player and dealer takes turn deciding to hit or stay.
If either the player or the dealer decides to stay, then the other party continues to make the choice to hit until she decides to stay or she busts.
The dealer always Hits if her Hand has a score of 16 or less.
The dealer always Stays if her Hand has a score of 17 or more.
Whoever busts first, loses.
If both the dealer and the player decides to stay whoever has a score close to 21 wins.
If the score is the same, then dealer wins.
This program is due by Tuesday, May 12.