Wednesday, 19 March 2014

A Blackjack Game in C++

1 .Introduction
This project is  simple version  of  playing cards  by console on visual studio  2012

Players are dealt cards with  point  values . Each Player tries to reach  a total  of 21  without  exceeding  that amount  . Numbers cards count as their face value . An ace counts  as  either one or 10 or 11 ( whichever is  best for the player , and  any jack m queen or king   counts as  10 .










How to Play .
Step  1 : You have to choose  how much players






For  example  : You  press  2 key . you will see we have 3  people : manager and two  players







Step 2 :  And then  you  press any number or character to divide cards


Step 3 :You  press  any number or character to check two cards

Step 4 .You  press any number or character to add new cards

and I press 1 key


and  then I press  1 key to stop  .and you  can see 3 card  ( k of  deamonds ,  9 of deamonds,  5 of spaces)

you make  the same with  position 2   and this result when i chose

Because we have  two player so when second player  press  "0" key  , we will  prepare  checking result
Step 5 : You press  any number or character to end game
we will see point of manager

And  then manager will checking who winner


if you want to continue playinng , you have to  press "y"

This is  result after 4 times

3 . How to design  code
a . How to create 52 cards  when starting game and  divide cards


b . How to create 52 cards  when ending  game




4 . Code  source   
Download form http://www.mediafire.com/ttle-blackjack-game-in-c.zip
You can use git to download form
git clone https://letrthong@code.google.com/p/ttle-blackjack-game-in-c/ 

This is  code on dev branch 
https://code.google.com/p/ttle-blackjack-game-in-c/source/list?name=dev

5 . Reference document
http://www.montefiore.ulg.ac.be/~hoyoux/info0004/info0004-project1-2010.pdf

                                                                                                                           Ho Chi Minh 3/19/2014
                                                                                                                                      Thong LT
                                           




1 comment:

  1. An IPL betting guide for beginners should introduce basic concepts in clear language, including match outcomes, odds, and tournament statistics. Beginners should also learn about financial risks, age restrictions, and local regulations before considering any betting-related activity.

    ReplyDelete