filmov
tv
Create And Deal A Deck Of Cards - PyQt5 GUI Thursdays #45
Показать описание
In this video I'll show you how to create a deck of cards with images for PyQt5 and Python.
After we create our deck of cards, we'll shuffle the cards and deal them out to a dealer and a player.
Each player will get one card at a time. We can then shuffle out more cards until the deck is empty.
We'll keep track of which player has which cards.
#pyqt5 #codemy #JohnElder
Timecodes
0:00 - Introduction
1:37 - Create GUI With PyQT5 Designer
8:16 - Import Widgets
8:41 - Define Widgets
11:50 - Create Button Clicks
12:24 - Create Shuffle And Deal Functions
13:16 - Create Deck Of Cards
14:44 - Add Cards To Deck
16:30 - Import Random
16:45 - Create Dealer And Player
17:05 - Deal Random Card From Deck To Dealer
17:24 - Remove Card From Deck
17:51 - Assign Card To Player
18:10 - Import QPixmap
18:47 - Set Path To Card Image
19:36 - Show Card On Screen
20:13 - Shuffle Player Card
20:36 - Show Card Count In Title
21:22 - Shuffle Cards On Start
22:03 - Deal Cards In Try Block
24:31 - Conclusion
After we create our deck of cards, we'll shuffle the cards and deal them out to a dealer and a player.
Each player will get one card at a time. We can then shuffle out more cards until the deck is empty.
We'll keep track of which player has which cards.
#pyqt5 #codemy #JohnElder
Timecodes
0:00 - Introduction
1:37 - Create GUI With PyQT5 Designer
8:16 - Import Widgets
8:41 - Define Widgets
11:50 - Create Button Clicks
12:24 - Create Shuffle And Deal Functions
13:16 - Create Deck Of Cards
14:44 - Add Cards To Deck
16:30 - Import Random
16:45 - Create Dealer And Player
17:05 - Deal Random Card From Deck To Dealer
17:24 - Remove Card From Deck
17:51 - Assign Card To Player
18:10 - Import QPixmap
18:47 - Set Path To Card Image
19:36 - Show Card On Screen
20:13 - Shuffle Player Card
20:36 - Show Card Count In Title
21:22 - Shuffle Cards On Start
22:03 - Deal Cards In Try Block
24:31 - Conclusion
Create And Deal A Deck Of Cards - PyQt5 GUI Thursdays #45
Super Simple Python: Generate a Deck of Cards
Create A Deck Of Cards And Deal Them Out - Python Tkinter GUI Tutorial 206
Working with a Deck of Cards Using Arrays Java
[C++ Tutorial #11.1] Instantiating a Deck of Cards
How to Cheat at Cards: Stacking the Deck
How to Make a Marked Deck of Cards!
What investors ACTUALLY want to see in your PITCH DECK.
5 HIDDEN SECRETS in a Deck of Cards You May Not Know Of!!
Card deck with C++ for beginners part 1
How To Build Your First Commander Deck | Magic: The Gathering
Quickly Import ANY DECK LIST Into Master Duel With MasterDuelMeta.com!
Make Their Card Turn Over Without TOUCHING The Deck! Card Trick Performance And Tutorial!
How I Build Decks: 2022 Deck Building Template
How to Make a Pitch Deck for Investors - Startups 101
Small Floating Deck 2020 | Easy Decking | DIY | No Digging | How to Build a Floating Deck
How To Build Any Deck For FREE! Yu-Gi-Oh Master Duel Ultimate Beginners Guide! (Free Gems + CP)
How to build your first Magic: The Gathering Deck
How to Build a Commander Deck on a Budget | Commander Guide | Deck Tips | EDH | Commander | MTG
20-Second Deck Tech: Omnath, Locus of Creation || Magic: the Gathering #Shorts
The LARGEST Yu-Gi-Oh Deck in History (2222 Cards!)
How to Build a Basic Deck in Clash Royale
How to Build a Commander Deck for Beginners
Magic 102: Building Your First Deck (Magic Arena)
Комментарии