Super Simple Python: Generate a Deck of Cards

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

Комментарии • 19

  • @noahtah1511
    @noahtah1511 Год назад +2

    thank you for this! i'm working on a blackjack project for class and didn't know how to approach the deck of cards, this will help!

  • @datbeef7023
    @datbeef7023 2 года назад +4

    This was a nice little project to practice some python basics, thanks!

    • @yujiantang
      @yujiantang  2 года назад

      Glad to be of help! Check out PythonAlgos.com for more stuff :)

  • @Jmvars
    @Jmvars Год назад +1

    I managed to create a deck and to even shuffle the deck! Now I just need to figure out how to deal the cards out to multiple players and I'm one step closer to making a card game.

    • @yujiantang
      @yujiantang  9 месяцев назад +1

      just checking in - how is that card game going?

  • @loopingmoon1444
    @loopingmoon1444 3 месяца назад

    As a starting Python enthusiast, I find myself annoyed at " 's because they stop my flow of typing. What keys do you use to get out of them after typing a string? Really enjoying the video, taking my time to really understand Classes. Thanks!

  • @jaywandery9269
    @jaywandery9269 2 года назад +1

    Short & simple. Thanks

    • @yujiantang
      @yujiantang  2 года назад

      Awesome, glad to be of help!

  • @corbinsbeats2540
    @corbinsbeats2540 2 года назад +5

    I do not know what happen honestly

  • @gitaralang
    @gitaralang Год назад +1

    Thanks for the vid good help for us beginners. Can I ask what is the empty card list for? Thanks!

    • @yujiantang
      @yujiantang  Год назад +1

      Hi Benedict, great question. It's so that we have an object to insert the cards that we are creating into!

  • @smillsmagsmillicent1523
    @smillsmagsmillicent1523 Год назад +1

    hi! great video! what extension do you use to color code everything?

  • @pickle6163
    @pickle6163 5 месяцев назад

    I know this an old video, would it be possible to change the code a bit to work with "Deck Builder" type game instead of just a standard deck

    • @yujiantang
      @yujiantang  5 месяцев назад +1

      yeah, just replace the cards

  • @DivyaVasupallo
    @DivyaVasupallo Год назад

    Write a program by using class and methods to show winner if below scenario pass in deck of cards.
    King of Spade, Queen of Heart
    King of Heart, Queen of Diamond
    King of Diamond, Queen of Club
    King of Club, Queen of Spade
    Hint: Input should be two digit like (2,5), if 2= King of Spade and 5= Queen of Heart then person is the winner.
    can u help me with this scenario

  • @jameskim6442
    @jameskim6442 4 месяца назад

    Ace is both highest and lowest in most games of poker and black jack.

  • @FelipeCampelo0
    @FelipeCampelo0 2 года назад +1

    lol you type so fast

    • @yujiantang
      @yujiantang  2 года назад

      lol thanks! i developed my typing speed from playing too much league of legends as a high schooler 🤣