Пікірлер
@Kyriesosa11
@Kyriesosa11 2 ай бұрын
in the shuffle function, why go from 51 to 0 instead of 0 to 51?
@appaesthetics1277
@appaesthetics1277 10 ай бұрын
Watched this 7 years later
@nimrakhan2868
@nimrakhan2868 10 ай бұрын
How can we add player names? What's the code for that?
@xzex2609
@xzex2609 10 ай бұрын
very good example .why don't you use shuffle method and pass your list? this way It's predictable
@yolamontalvan9502
@yolamontalvan9502 11 ай бұрын
You’re an amazing teacher. But you only have 1 video.
@jeffreykrenitsky6190
@jeffreykrenitsky6190 Жыл бұрын
One of the most helpful, informative, and succinct tutorials I've seen on KZbin.
@MenyeMC
@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
@chrisnorthall8317 Жыл бұрын
had to stop listening, the keyboard bashing was driving me nuts.
@sarvanandgaikwad3048
@sarvanandgaikwad3048 Жыл бұрын
Make videos bro I liked it.
@omerkaratas5875
@omerkaratas5875 Жыл бұрын
Perfect video to comprehand things about OPP. Thank you very much.
@kajekage9410
@kajekage9410 Жыл бұрын
This guy beats the hell out of his keyboard lol
@shubhampatel6908
@shubhampatel6908 2 жыл бұрын
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😅
@frambuella
@frambuella 2 жыл бұрын
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!
@xzex2609
@xzex2609 10 ай бұрын
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.
@zuraqarchava3040
@zuraqarchava3040 2 жыл бұрын
Hello, how to contact you on social media?
@diegodocarmoespindola9660
@diegodocarmoespindola9660 2 жыл бұрын
thank you, I enjoyed watching this, it's helping me to understand more about object oriented programming
@AftabBaloch_
@AftabBaloch_ 2 жыл бұрын
thanks
@grovest4life228
@grovest4life228 2 жыл бұрын
awesome pawsome
@Ferventus
@Ferventus 2 жыл бұрын
Your code doesnt even function.
@ExecutedBinary
@ExecutedBinary 2 жыл бұрын
This code is written in python 2. I will make a python 3 version at some point.
@luvasluvasluvas
@luvasluvasluvas 3 жыл бұрын
when i try to print the player's hand it shows <card.Cards object at 0x000001D7BCC68A90>
@anonymous.8393
@anonymous.8393 3 жыл бұрын
self.name
@venumadhavrallapalli
@venumadhavrallapalli 3 жыл бұрын
what ... u can pass a class object as an argument inside a function ??? u passed deck in draw method inside player class !!!
@marioandresheviacavieres1923
@marioandresheviacavieres1923 3 жыл бұрын
thanks!!!
@davidjohnhamm
@davidjohnhamm 3 жыл бұрын
why is your computer full of ping pong balls?
@AndrewDangerously
@AndrewDangerously 3 жыл бұрын
Really helpful, thanks!
@Mune.T
@Mune.T 3 жыл бұрын
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.
@Yash42189
@Yash42189 3 жыл бұрын
Dude you need to make more videos!
@johnnycincocero
@johnnycincocero 3 жыл бұрын
I love poop!
@ExecutedBinary
@ExecutedBinary 2 жыл бұрын
Thank you for getting this
@adkoxderramoney2933
@adkoxderramoney2933 3 жыл бұрын
do you have instegram
@oliverludwig6148
@oliverludwig6148 3 жыл бұрын
how would i make an irregular deck of cards? meaning not all suits have the same number of cards in it.
@secretsather
@secretsather 3 жыл бұрын
random.shuffle is Fisher-Yates!
@malabikasen2401
@malabikasen2401 3 жыл бұрын
Thank you! This is a very nice video to get the concepts of OOP in
@statixsc3013
@statixsc3013 3 жыл бұрын
was a good video but for the love of god saying right all the time had me mute u after 6:50
@1989TonyTu
@1989TonyTu 3 жыл бұрын
Can someone please explain to me what is happening at line 28?
@iangannon8539
@iangannon8539 3 жыл бұрын
14:50 nice...
@ivantorres2937
@ivantorres2937 3 жыл бұрын
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!!!!
@ExecutedBinary
@ExecutedBinary 3 жыл бұрын
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!
@JoshPaulie
@JoshPaulie 3 жыл бұрын
Excuse me, just finding my jaw. It's somewhere on this floor...
@ExecutedBinary
@ExecutedBinary 3 жыл бұрын
Hey Josh, I hope you found it!
@SarimFaruque
@SarimFaruque 3 жыл бұрын
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?
@ExecutedBinary
@ExecutedBinary 3 жыл бұрын
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!
@SprocketN
@SprocketN 3 жыл бұрын
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.
@ExecutedBinary
@ExecutedBinary 3 жыл бұрын
Thanks you! I'm really glad it was informative, I plan on making an update for python3 some day soon
@zuraqarchava3040
@zuraqarchava3040 2 жыл бұрын
@@ExecutedBinary Hello, how to contact you on social media?
@juggernautj828
@juggernautj828 3 жыл бұрын
Thanks 15
@mailchibi88
@mailchibi88 4 жыл бұрын
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. :|
@genroynoisis6980
@genroynoisis6980 4 жыл бұрын
thank you so much
@atlantic_love
@atlantic_love 4 жыл бұрын
Try making a video on transforming a use case into a class model. otherwise, this is all pointless.
@jamesgebler5738
@jamesgebler5738 4 жыл бұрын
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!
@lamedev1342
@lamedev1342 4 жыл бұрын
I struggled with classes but you really make me understand them better
@ExecutedBinary
@ExecutedBinary 3 жыл бұрын
Glad I could help!
@chachacha8810
@chachacha8810 4 жыл бұрын
.shuffle()
@statuschannel8572
@statuschannel8572 4 жыл бұрын
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
@cringelevelunlocked7418
@cringelevelunlocked7418 4 жыл бұрын
His python is a bit old so probably it didn't had the "pass" in his version
@statuschannel8572
@statuschannel8572 4 жыл бұрын
@@cringelevelunlocked7418 see the description he is using python 2.7 and you can use 'pass' in that version.
@melfaraj4633
@melfaraj4633 4 жыл бұрын
Need to know how to make the cards graphically for a realistic game
@atlantic_love
@atlantic_love 4 жыл бұрын
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.
@xjiren4936
@xjiren4936 4 жыл бұрын
Getting a traceback error, It's saying my deck is not defined. Not sure where I'm going wrong.
@R0adx
@R0adx 4 жыл бұрын
Hi, what syntax theme is this?