in the shuffle function, why go from 51 to 0 instead of 0 to 51?
@appaesthetics127710 ай бұрын
Watched this 7 years later
@nimrakhan286810 ай бұрын
How can we add player names? What's the code for that?
@xzex260910 ай бұрын
very good example .why don't you use shuffle method and pass your list? this way It's predictable
@yolamontalvan950211 ай бұрын
You’re an amazing teacher. But you only have 1 video.
@jeffreykrenitsky6190 Жыл бұрын
One of the most helpful, informative, and succinct tutorials I've seen on KZbin.
@MenyeMC Жыл бұрын
I genuinly believe this is the best thing I have ever seen on youtube. I have been looking for an OOP example to help me wrap my head around it but all channels keep saying the same generic stuff. Thanks for this video.
@chrisnorthall8317 Жыл бұрын
had to stop listening, the keyboard bashing was driving me nuts.
@sarvanandgaikwad3048 Жыл бұрын
Make videos bro I liked it.
@omerkaratas5875 Жыл бұрын
Perfect video to comprehand things about OPP. Thank you very much.
@kajekage9410 Жыл бұрын
This guy beats the hell out of his keyboard lol
@shubhampatel69082 жыл бұрын
I started learning OOP recently and this project was really awesome. It also cleared my OOP concepts. Soon I will create its python 3 version and send it to you if you wanna add it in your source code repository. Syntax was almost same in python 3 , so I guessn there will be no need😅
@frambuella2 жыл бұрын
Yooo! I just started learning oop in python last week and this is such a great way to learn about classes and objects using a deck of cards! Thanks for the video!
@xzex260910 ай бұрын
if you want to have a good example of implementing somethin with OOP I suggest you to see JImShappedCoding developing a mine sweeper game in tkinter.
@zuraqarchava30402 жыл бұрын
Hello, how to contact you on social media?
@diegodocarmoespindola96602 жыл бұрын
thank you, I enjoyed watching this, it's helping me to understand more about object oriented programming
@AftabBaloch_2 жыл бұрын
thanks
@grovest4life2282 жыл бұрын
awesome pawsome
@Ferventus2 жыл бұрын
Your code doesnt even function.
@ExecutedBinary2 жыл бұрын
This code is written in python 2. I will make a python 3 version at some point.
@luvasluvasluvas3 жыл бұрын
when i try to print the player's hand it shows <card.Cards object at 0x000001D7BCC68A90>
@anonymous.83933 жыл бұрын
self.name
@venumadhavrallapalli3 жыл бұрын
what ... u can pass a class object as an argument inside a function ??? u passed deck in draw method inside player class !!!
@marioandresheviacavieres19233 жыл бұрын
thanks!!!
@davidjohnhamm3 жыл бұрын
why is your computer full of ping pong balls?
@AndrewDangerously3 жыл бұрын
Really helpful, thanks!
@Mune.T3 жыл бұрын
What do i do when i want to have 2 times the same card in my deck? e.g. a deck with 8 ace of spades and 2 jokers.
@Yash421893 жыл бұрын
Dude you need to make more videos!
@johnnycincocero3 жыл бұрын
I love poop!
@ExecutedBinary2 жыл бұрын
Thank you for getting this
@adkoxderramoney29333 жыл бұрын
do you have instegram
@oliverludwig61483 жыл бұрын
how would i make an irregular deck of cards? meaning not all suits have the same number of cards in it.
@secretsather3 жыл бұрын
random.shuffle is Fisher-Yates!
@malabikasen24013 жыл бұрын
Thank you! This is a very nice video to get the concepts of OOP in
@statixsc30133 жыл бұрын
was a good video but for the love of god saying right all the time had me mute u after 6:50
@1989TonyTu3 жыл бұрын
Can someone please explain to me what is happening at line 28?
@iangannon85393 жыл бұрын
14:50 nice...
@ivantorres29373 жыл бұрын
Thank you so much for this tutorial, it's very helpful!! I'm noob in programming, could someone explainme why can't I see the information using the "show()" method of "Card" class? --> print(deck.cards[2].show()) it return "None" Thanks!!!!
@ExecutedBinary3 жыл бұрын
This is probably because your Cards show method prints a string instead of returning one. So when you try and print the return value of show you get the implicit None return value. You can either just call show and not print it, or you can have show return a string instead of printing it inside. Keep it up!
@JoshPaulie3 жыл бұрын
Excuse me, just finding my jaw. It's somewhere on this floor...
@ExecutedBinary3 жыл бұрын
Hey Josh, I hope you found it!
@SarimFaruque3 жыл бұрын
I like this code, but I also want to divide the deck by half via a child class for each player to use, and still keep the properties of shuffling and drawing a card. Any way I could do that?
@ExecutedBinary3 жыл бұрын
I would create a constructor for the Deck class that takes an array of cards, so you can initialize one with a partial set of cards instead of generating them. Then when create a split method that splits the cards and initializes two new deck instances with each half, and returns them. Keep at it!
@SprocketN3 жыл бұрын
Though this is an older version of Python than I use. It is the first video that explained classes in a way that I could understand enough to create my own class for a tile based game I’m writing, while learning Python. I have a lot yet to learn, but you have really helped. Thank you for taking the time to create the video and sharing it with us.
@ExecutedBinary3 жыл бұрын
Thanks you! I'm really glad it was informative, I plan on making an update for python3 some day soon
@zuraqarchava30402 жыл бұрын
@@ExecutedBinary Hello, how to contact you on social media?
@juggernautj8283 жыл бұрын
Thanks 15
@mailchibi884 жыл бұрын
While this video was informative, its hard to keep up if you're changing variable names without warning. I had to keep backtracking just to fix these issues. Furthermore if you want people to follow along maybe consider slowing down a bit. Beginners like myself do not necessarily have the same programming logic as you when they're first going through this exercise. Looking back at the code I'm able to see how everything works but it can be exceedingly frusterating to keep backtracking to figure out where an error has been made. :|
@genroynoisis69804 жыл бұрын
thank you so much
@atlantic_love4 жыл бұрын
Try making a video on transforming a use case into a class model. otherwise, this is all pointless.
@jamesgebler57384 жыл бұрын
Thank you so much for this video! This is incredibly helpful. I was trying to understand how to create a deck of cards myself, and this solved my problem!
@lamedev13424 жыл бұрын
I struggled with classes but you really make me understand them better
@ExecutedBinary3 жыл бұрын
Glad I could help!
@chachacha88104 жыл бұрын
.shuffle()
@statuschannel85724 жыл бұрын
2:37 you don't have to comment the other 2 classes just type "pass" inside of it python will know you don't like to execute those classes for now
@cringelevelunlocked74184 жыл бұрын
His python is a bit old so probably it didn't had the "pass" in his version
@statuschannel85724 жыл бұрын
@@cringelevelunlocked7418 see the description he is using python 2.7 and you can use 'pass' in that version.
@melfaraj46334 жыл бұрын
Need to know how to make the cards graphically for a realistic game
@atlantic_love4 жыл бұрын
download a card pack. Google playing cards download. Or, you can take pictures of actual playing cards, and crop and resize the images, and then copy those images into your program folder.
@xjiren49364 жыл бұрын
Getting a traceback error, It's saying my deck is not defined. Not sure where I'm going wrong.