COMP1043 - UO Problem Solving and Programming - IT Assignment Help

Download Solution Order New Solution
Assignment Task

 

ASSIGNMENT OVERVIEW
You are required to write a Python program that allows a player to play a game of Blackjack against the computer.  The program will allow a player to play as many games of Blackjack as they wish.

Blackjack
Blackjack is a popular card game where the goal is to beat the dealer by having the higher hand which does not exceed 21.  https://en.wikipedia.org/wiki/Blackjack.
Although there are many variations of the rules and game play, we will be adhering to the following rules and game play for the assignment.
Blackjack hands are scored by their point total, calculated by adding together the face values of each card dealt.  The hand with the highest total wins, as long as it doesn’t exceed 21.  A hand with a higher total than 21 is said to bust.  Being dealt an Ace (of any suit) counts as eleven (11) points unless this would cause the player to bust, in which case it is worth one (1) point.  Picture cards (King, Queen and Jack) are all worth 10 points.  All other cards are worth their numerical value shown on the card.  

Blackjack game play:
•    To begin, the player and the dealer are dealt an initial hand of two cards each.
•    If the dealer has Blackjack (the first two cards dealt total 21 points) and the player does not, the dealer automatically wins.
•    If the player has Blackjack (the first two cards dealt total 21 points) and the dealer does not, the player automatically wins.
•    If both the player and the dealer have Blackjack (the first two cards dealt total 21 points) then it is a push (draw).
•    If neither have Blackjack, then the player plays out his/her hand.  Note that the term Blackjack can only be achieved as a result of the first two cards dealt.
•    When the player has finished playing out his/her hand, the dealer (in this case the computer) plays out the dealer’s hand.
•    During the player’s turn, the player is faced with two options either:

1.    Hit (take a card):
After the initial deal of two cards, a player may choose to receive additional cards as many times as he/she wishes, adding the point value of each card to his/her hand total.

2.    Stand (end their turn):
Do not receive any more cards.  The player’s turn is over.
•    The player repeatedly takes a card until, the player chooses to stand, or the player busts (that is, exceeds a total of 21).  The player’s turn is over after deciding to stand or if he/she busts.
•    Once the player has finished, the dealer plays out his/her hand (in this case the computer), revealing the hidden second card amount.  Note:  the dealer always plays his/her hand regardless of what happens with the player’s hand.  The dealer must hit until he or she has a point value of 17 or greater.
 
Blackjack rules:
•    If the player busts, he/she loses even if the dealer also busts.
•    If the player and the dealer have the same point value, it is called a ‘push’ and neither win the hand (draw).
•    An initial two-card deal of 21 (an 11 plus a 10) is called Blackjack (i.e. an 11 plus a 10 is dealt as the very first hand) and wins the round automatically.
•    An Ace counts as eleven (11) points unless this would cause the player/dealer to bust, in which case it is worth one (1) point.

 

This COMP1043 - IT Assignment has been solved by our IT experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.