Code Black Jack in Java

preview_player
Показать описание
How to code a BlackJack game in Java for beginners! Learn how to create a game of Black Jack in Java using the awt and swing graphics library.

You will learn how to create a deck, shuffle it, and deal cards to the dealer and the player. You will also learn to hit (draw cards) and stay (submit your hand) and compare the results to see who wins the round. After learning how to set up the game logic, you will learn how to create a graphical user interface (GUI) to display the player cards and update when you click hit or stay.

Setup Java with Visual Studio Code:

Download Cards Asset here!

Java Game Programming Projects Playlist:

JavaScript Game Programming Projects Playlist:

Subscribe for more coding tutorials 😄!
Рекомендации по теме
Комментарии
Автор

Thank you for making this!! I especially love that you put a little homework assignment on the github so we could work on it even more on our own and practice further. I just finished adding both the betting feature and the new game feature and since it wasn't in the video it really forced me to learn new tools and really comprehend the code and how it all functioned. Thank you so much for this and I hope you continue doing stuff like this I loved it. Will definitely come back and do more keep it up!!

santiraigoza
Автор

Nice work! You write great code, It's easy to understand and does the job well.

druadiza
Автор

thank you much, this is the better video what i saw about java project. Special thanks for having this in the Visual code

fox_
Автор

Thank you for sharing and making this video. Do you have same in the game of baccarat and roulette. Thanks again

BaccaratBaccaratato
Автор

This is great! I decided to use enums to write the cards. How do I download the card folder? I'm lost on how to do that.

henrygardiner
Автор

Did you create those card image files yourself?

jacklazzaro
Автор

Hey one thing I am having trouble with is the reset button. I am able to re shuffle but for some reason the buttons will not re enable.

ItzRexie
Автор

Hello excuse me, I am a college student and I am looking for a program for my final project, I feel that the program you made is very interesting, may I know how long you worked on this project? I only have 1 month, am I late? thank you.

kanonmatsu
Автор

I'm having difficulties with the cards' images. Null Exceptions when I excecute the code

Amina-gmts
Автор

Could you make a tutorial using JavaFX? or is it similar to JavaSwing?

ItsJustManny
Автор

hi hope you're doing well
package src;
public class App {
public static void main(String[] args){
BlackJack blackJack = new BlackJack();
}
}

when i run the program normaly i get an error <tempCodeRunnerFile.java:4: error: cannot find symbo> and when i try to debug it works fine
when i add blackjack.startGame(); it gives me two decks
if you can explain
edit:
a constractor runs automatically when intansiating a class

Mood-cymy
Автор

thank you so much, absolute lifesaver, and i learned how to actually code in java with this tutorial lol

linaaveya
Автор

Hey my App Class is showing an error saying BlackJack cannot be resolved to a type.

empoweredsuccess
Автор

Can you make a video tutorial on how to make a gold mining game? plssss

quochung