Code Black Jack in Java

  Рет қаралды 46,942

Kenny Yip Coding

Kenny Yip Coding

Күн бұрын

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:
• How to set up Java in ...
Download Cards Asset here!
Code: github.com/ImK...
Website: www.kennyyipco...
Java Game Programming Projects Playlist:
• Java Game Programming ...
JavaScript Game Programming Projects Playlist:
• JavaScript Game Progra...
Subscribe for more coding tutorials 😄!

Пікірлер: 42
@santiraigoza5937
@santiraigoza5937 Жыл бұрын
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!!
@KennyYipCoding
@KennyYipCoding Жыл бұрын
Great work, glad you learned a lot! Feel free to share a link :)
@linaaveyaa
@linaaveyaa 11 ай бұрын
thank you so much, absolute lifesaver, and i learned how to actually code in java with this tutorial lol
@fox_2551
@fox_2551 8 ай бұрын
thank you sooooo much, this is the better video what i saw about java project. Special thanks for having this in the Visual code
@CodewKanna
@CodewKanna Ай бұрын
8:43 11:34 15:27 26:00 28:45 👑 32:00 37:00 49:00 53:25 🎉
@Pawlo370
@Pawlo370 Жыл бұрын
Amazing
@jamesross3939
@jamesross3939 23 күн бұрын
Liked and Subscribed!
@henrygardiner3664
@henrygardiner3664 Жыл бұрын
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.
@KennyYipCoding
@KennyYipCoding Жыл бұрын
It’s in my GitHub link, you can download a zip
@BaccaratBaccaratato
@BaccaratBaccaratato 10 ай бұрын
Thank you for sharing and making this video. Do you have same in the game of baccarat and roulette. Thanks again
@MilkAndPieK
@MilkAndPieK 3 ай бұрын
SO Good!
@ItsJustManny
@ItsJustManny 10 ай бұрын
Could you make a tutorial using JavaFX? or is it similar to JavaSwing?
@KennyYipCoding
@KennyYipCoding 10 ай бұрын
I’ve never used javafx before and idk if there’s any benefits to learning it over swing. But if you understand everything in the tutorial, you can actually code it yourself in javafx, or in Python or JavaScript. You just need to find any gui library and apply the same concepts, just with different syntax.
@Amina-gm9ts
@Amina-gm9ts Жыл бұрын
I'm having difficulties with the cards' images. Null Exceptions when I excecute the code
@KennyYipCoding
@KennyYipCoding Жыл бұрын
Try copying the code I have in the GitHub link to see if you missed something
@Amina-gm9ts
@Amina-gm9ts Жыл бұрын
@@KennyYipCodingit was a path images problem. Solved it! Thank u
@henrygardiner3664
@henrygardiner3664 Жыл бұрын
@@Amina-gm9ts I'm having the same issues. How did you fix it?
@Amina-gm9ts
@Amina-gm9ts Жыл бұрын
@@henrygardiner3664 make sure to put the images in a folder inside the project folder
@w4termojada
@w4termojada 16 күн бұрын
why when i sysout "deck" it only prints "[]"!?
@ItzRexie
@ItzRexie 8 ай бұрын
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.
@jacklazzaro9820
@jacklazzaro9820 Жыл бұрын
Did you create those card image files yourself?
@KennyYipCoding
@KennyYipCoding Жыл бұрын
Nope, I got them from an open source site, don’t remember the site though.
@LPAIDATASHEET
@LPAIDATASHEET 3 ай бұрын
WHAT TYPE OF INNER CLASSE IS USED IN THIS PROGRAM SIR...
@KennyYipCoding
@KennyYipCoding 3 ай бұрын
???
@LPAIDATASHEET
@LPAIDATASHEET 3 ай бұрын
@@KennyYipCoding sir as on we have created a Public class Blackjack and then into the Public class Blackjack we have created a private class Card this invokes inner class concept in java there are various types of inner class in java such as Nested Inner classes, Static Inner classes, Method Local Inner classes, and Anonymous Inner classes which type of inner class in invoked in this program by the way you are very enthusiatic person to learn with sir...
@thepotatoofheaven
@thepotatoofheaven Ай бұрын
did you manually make the lib bin folders
@KennyYipCoding
@KennyYipCoding Ай бұрын
No, vscode does it for you when you create Java projects
@kanonmatsu556
@kanonmatsu556 Жыл бұрын
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.
@Pablogb1108
@Pablogb1108 Жыл бұрын
it depends on how much time you got daily and if you want to implement improvements but i would say it's plenty of time! :)
@bfrytech
@bfrytech 5 ай бұрын
I really hope you didn't use this.
@Mood-cy9my
@Mood-cy9my 7 ай бұрын
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 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
@quochung3412
@quochung3412 8 ай бұрын
Can you make a video tutorial on how to make a gold mining game? plssss
@KennyYipCoding
@KennyYipCoding 8 ай бұрын
Gold mining game?
@quochung3412
@quochung3412 7 ай бұрын
@@KennyYipCoding yes sir :V
@empoweredsuccess
@empoweredsuccess 10 ай бұрын
Hey my App Class is showing an error saying BlackJack cannot be resolved to a type.
@fortyquinn1301
@fortyquinn1301 5 ай бұрын
You are probably missing the required library.
@Brokeleptic
@Brokeleptic 4 ай бұрын
getting an error "Main Method not found in BlackJack" what do i do to resolve this?
@KennyYipCoding
@KennyYipCoding 4 ай бұрын
Run your code in the main Java file, not the blackjack java file
@HenryNisola
@HenryNisola 9 ай бұрын
Can I request a copy of the codes?
@KennyYipCoding
@KennyYipCoding 9 ай бұрын
As mentioned in the video, the GitHub link is in the description
@suhas838
@suhas838 4 ай бұрын
Are tou gunesh ???
Code Memory Card Game in Java
45:59
Kenny Yip Coding
Рет қаралды 7 М.
Making a Game with Java with No Java Experience
8:41
Goodgis
Рет қаралды 777 М.
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН
Counter-Strike 2 - Новый кс. Cтарый я
13:10
Marmok
Рет қаралды 2,8 МЛН
programming projects that taught me how to code
9:49
isak
Рет қаралды 319 М.
Inside the V3 Nazi Super Gun
19:52
Blue Paw Print
Рет қаралды 3,2 МЛН
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,6 МЛН
I Beat Minecraft From One Grass Block
35:27
Beppo
Рет қаралды 8 МЛН
I Recreated Arcane With $0
15:01
Noggi
Рет қаралды 2,3 МЛН
I coded one project EVERY WEEK for a YEAR
13:13
Carter Semrad
Рет қаралды 817 М.
20 Programming Projects That Will Make You A God At Coding
14:27
The Coding Sloth
Рет қаралды 1,7 МЛН
Making a Game With C++ and SDL2
8:14
PolyMars
Рет қаралды 1,7 МЛН
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН