Finalizat

Blackjack small project

Blackjack (21 points). This question is adpoted from John Zelle's Book: Python Programming: an intro to comp sci.

Blackjack (twenty-one) is a casino game played with cards. The goal of the game to draw cards that total as close to 21 points as possible without going over. All face cards count as 10 points, aces count as 1 or 11, and all other cards count their numeric value.

The game is played against a dealer. The player tries to get closer to 21 (without going over) than the dealer. If the dealer busts (goes over 21) the player automatically wins (provided the player had not already busted). The dealer must always take cards according to a fixed set of rules. The dealer takes cards until he or she achieves a total of at least 17. If the dealer's hand contains an ace, it will be counted as 11 when that results in a total between 17 and 21 inclusive; otherwise, the ace is counted as 1.

Write a program that simulates multiple games of blackjack and estimates the probability that the dealer will bust. Hints: treat the deck of cards as infinite. You do not need to keep track of the cards in the hand, just the total so far (treating an ace as 1) and a bool variable hasace that tells whether or not the hand contains an ace. A hand containing an ace should have 10 points added to the total exactly when doing so would produce a stopping total(something between 17 and 21 inclusive).

Requirement:

- write a function that picks/generates the next card.

- write a function to tell if the dealer is busted or not.

- write a function to simulate the game for n times, where n is specified by user.

Grading

- compilable and meaningful attemps: 30%

- functionality: 60%

- comment, indentation and file name: 10%

File name:

[login to view URL]

Aptitudini: Programare C++

Vezi mai multe: small project language, small project management, small project ideas programming, small project freelance, fulltime offline data entry small project fulltime chennai, aspnet small project, microphone speaker small project, small project java rmi, small project html css, small project cad program, stationery tracking program. a small project. offer?

Despre angajator:
( 0 recenzii ) Wichita, United States

ID Proiect: #21392113

Acordat lui:

usmanshery

hi, i'm interested in your project. i've experience in python and i can do this cards thing for you with quality code. pm if interested. Regards

%selectedBids___i_sum_sub_7%%project_currencyDetails_sign_sub_8% USD în 2 zile
(81 Recenzii)
5.4

7 freelanceri licitează în medie 39$ pentru acest proiect

utkarshkatiyar19

Hi, I'm an expert in python programming. I'm sure that I can easily do this project for you. We can have a chat about it. Thanks.

%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 3 zile
(299 recenzii)
7.1
usamamw141

Hey there, I can do this task within a day so feel free to inbox me any time. Thank you..............

%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(60 recenzii)
5.2
Adiron

Quality Service can be fullfil If you provide a chance to proof. Relevant Skills and Experience Object Oriented concept is very much clear to me for any developing purpose work.

%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 5 zile
(0 recenzii)
0.0
everatilano3001

Hello, my name is Ever Atilano. I am starting as a Freelancer, however, I worked as firmware engineer before so I have some expertise in this area. I've work with c++for a couple of years, so I can help you to develop Mai multe

%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(0 recenzii)
0.0
aqib880

Hi, I can implement required function for blackjack gaem. Leave a response to discuss further. Regards, A. Abbas

%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 3 zile
(0 recenzii)
0.0
zhamza372

hello i am a python developer and i know this game. i have done the coding of this game in java but for you i will do this project in python.

%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 3 zile
(0 recenzii)
0.0