How to Program Console Blackjack in Java

Learn Blackjack Video Source & Info:

A full length video tutorial on how to create Blackjack in Java. Teaches you how object oriented programming works with concrete card/deck examples. This is part of txtLearn.com’s Intro to Java Series – Download the completed project here: https://onedrive.live.com/redir?resid=5790ADB418B8188F!114533&authkey=!AAUxDcXt4dVsbZ4&ithint=file%2czip

Source: YouTube

Share this video:
How to Program Console Blackjack in Java

10 thoughts on “How to Program Console Blackjack in Java

  1. Why not set up the deck as a two dimensional boolean array of 4 by 13. You don't need to shuffle. When you draw from the deck that position is set to false.

  2. Thank you so much for this. it helped me understand so much and taught me a lot and really helped with my class project!

  3. can you please help me with an assignment, because i'm lost i watched to many tutorials and i just can't do it.
    this is the assignment :
    Here are the rules for playing the card game, “21”: A player tries to collect

    cards whose total score is 21 or as close as possible. The player with the highest

    score not exceeding 21 wins. (If the player’s score is higher than 21, the player

    is “busted” and loses.) A card’s has a point value based on its count (e.g., a

    four of clubs is valued 4), but face cards are valued 10, and we will say that an

    ace is valued 11.

    Initially, each player receives two cards from the dealer. Then, each player can

    request additional cards, one at a time, from the dealer. After all the players

    have received desired additional cards, the players reveal their hands.

    Write an application that lets a computerized dealer, a human player, and a

    computerized player play 21. The computerized player should be smart enough

    to request additional cards as long as the player’s total score is 16 or less.

    it is taken from the book of David Schmidt-programming principles in java

  4. Absolutely fantastic. Thanks for showing this great tutorial. I learned much. Please do some more. If, then something with implementing interfaces perhaps. But what I will try to do next is adding some methods that shuffle the deck again after all cards have been used. The game throws an exception after about 23 turns. Also I want to save high scores in a file as soon there is playerMoney at new heights. Last but not least for another practice is chosing additional players either AI or real. All things I theoretically know how to do but not in conjunction with Blackjack. This program is just perfect to extend in so many ways.

  5. Is it necessary to use ''this.cards' everywhere instead of just 'cards'? I thought its just necessary for the constructor because of the parameters.

  6. I don't understand the purpose of move all to deck function. Why not just create a new full deck? Why aren't we shuffling again. Seems peculiar

Comments are closed.