Implement a simplified Baccarat game with betting between 1 user (the "player") and the computer (the "banker") for 10 rounds. Baccarat is a comparing card game played between the two hands, the "player" and the "banker." Each baccarat coup has three possible outcomes: "player" (player has the higher score), "banker," and "tie."
The cards have a point value: cards 2–9 are worth face value (in points); 10s, Js, Qs and Ks have no point value (i.e. are worth zero); Aces are worth 1 point. Hands are valued according to the rightmost digit of the sum of their constituent cards: for example, a hand consisting of 2 and 3 is worth 5, but a hand consisting of 6 and 7 is worth 3 (i.e. the 3 being rightmost digit in the combined points total: 13).
The player starts with 50 $1 chips. The user must place a bet of maximum 5 chips for each round. Each baccarat coup has three possible outcomes: "player" wins (even win: 1:1), "banker," wins and "tie." Betting example: Lets say that you have $50 and you bet $5. If you win, you will get your $5 bet back plus another $5. Your purse will be $55. If you loose, you will loose your $5 bet. Your purse will be $45.
For each round (coup), two cards are dealt face up to each hand ("player" and "banker"). If either Player or Banker or both achieve a total of 8 or 9 at this stage, the coup is finished and the result is announced: Player win, a Banker win, or tie. If neither the Player nor Banker is dealt a total of 8 or 9 in the first two cards (known as a "natural"), the tableau is consulted, first for Player's rule, then Banker's.
If Player has an initial total of 0–5, he draws a third card. If Player has an initial total of 6 or 7, he stands.
If Player stood pat (i.e., has only two cards), the banker regards only his own hand and acts according to the same rule as Player. That means Banker draws a third card with hands 0–5 and stands with 6 or 7. If Player drew a third card, the Banker acts according to the following more complex rules:
- If Player drew a 2 or 3, Banker draws with 0–4, and stands with 5–7.
- If Player drew a 4 or 5, Banker draws with 0–5, and stands with 6–7.
- If Player drew a 6 or 7, Banker draws with 0–6, and stands with 7.
- If Player drew an 8, Banker draws with 0–2, and stands with 3–7.
- If Player drew an ace, 9, 10, or face-card, the Banker draws with 0–3, and stands with 4–7.
The program will deal the cards according to the tableau and will announce the winning hand: either Player or Banker.
I attached a draft of the program and the required images for the program below.
I need this by the end of the day
Hello! my name is Viktor. We are IT Company «Webin». We provide website design and web and app development services for organizations, public and government institutions, company or private web-pages.
We got acquainted with Your description of the task, our devs can start the work on Your website as soon as You need. We have gained years of experience and expertise working in CMS(Wordpress, Drupal, OpenCart, MoDx), Mockup Designs, Template Customizations, PHP, php-frameworks(Yii/Yii2,laravel), Software Architecture, JavaScript, jQuery, HTML5, CSS3 and Responsive. Our team specialized on developing from the simplest website to the most complex web-based internet applications, electronic businesses, corporate portals and social network services. Now, we are ready to start working on your project. However, we are looking forward to hear from you the detailed descriptions of the task.
We are glad to chat with You and discuss all in details. Contact us and we will reply immediately. Waiting for Your reply!
With regards, Webin team
Hi! I have 5 years+ experience with Java and can finish your project within some hours. Please contact me to discuss further details.
Relevant Skills and Experience
Java: >5 years
Proposed Milestones
$25 USD - Completion
over 16 years of programming,having programmed extensively
C++C#,MT4,cAlgo,cTrader,Java,OpenXava' C,VB, QT, API, DLL,AI,ASP,NET,
Python,PHP,Socket and Networking,Payment systems Excel programming etc
and web development.