Python Blackjack Game

admin  4/13/2022
Python Blackjack Game Rating: 4,6/5 9235 votes

Hello everyone.

How to Play Blackjack - Learn basic blackjack rules in this simple step-by-step guide to playing. Discover how to bet and improve your odds of winning! In this video I give a short demonstration of a game I made in my first programming course in college. It is Black Jack, made with Python and TKinter.

I am learning Python at the moment and I am liking it, so after finishing the collection course and the Dungeon Game I wanted to test my skills with a BlackJack game.

Here is my code so far:

Python

I have tested it on my terminal in my virtual environment and I would say it is doing fine.I have added what I will need to do next as comments at the bottom.

Please test it and let me know if you find any bugs that I have missed!! THANKS

Also, as you may remember Kenneth Love , I have asked you about global variables in Python yesterday and the question was because of this project:

Python Blackjack Game

I have to use a few: 4 if I have counted correctly.I have thought (actually still think) that I need those because I will have to use them a lot in the code.

But if there is a better way to do this (which I am pretty sure there is :) ), feel free to let me know.

Thanks

Vittorio

Blackjack Game Python 3

Instead of selecting a card and then removing it as its own step, why not just .pop() the first occurrence of the card's value?

Awesome work, though! Great to see people come up with brand new creations!

Right, pop is surely needed here.I was wondering about that also because now I don't want to waste the card value as I need it later to check the stats.

ty Kenneth,

Python Blackjack Game Script

good to see you often around the forum

Python Blackjack Game

Blackjack Python Simulator

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.