In this video we learn how to make the classic card game Blackjack or 21 in python with the PyGame framework!
The code and assets are all available at the GitHub link here:
https://github.com/plemaster01/pygame...
Consider becoming a super supporter of the channel at my Patreon link here:
/ lemastertech
Blackjack is a simple and fun card game found at every single casino in America! The goal is for the player to get as close to a score of 21 without going over (going bust) as possible! The dealer will always play against you and they are required to add cards (hit) to their hand until their hand total reaches at least 17. The rules are simple and this is a great project for beginners to python or intermediate programmers who want to get better with the PyGame module!
TIMESTAMPS:
00:00:00 Intro and Background
00:02:46 Set Up Game Variables and PyGame Window!
00:11:04 Drawing Buttons onto the Screen!
00:23:15 Handling the Deal Button
00:27:12 Automatic Dealing Function
00:32:59 Drawing Cards onto the Screen
00:41:28 Calculate Score of Hands and Display on Screen
00:56:23 Hit and Stand Command Buttons
01:01:55 Handle Game Over Conditions
01:09:45 Restarting and Playing Again
01:15:17 Outro and Thanks!