AnthisCareerAcademy / 2024_AM_21-game

1 stars 8 forks source link

Shuffling Function (and main.py) #6

Closed HB-the-Pencil closed 1 month ago

HB-the-Pencil commented 1 month ago

I am creating a main.py file that will eventually hold the whole game.

To shuffle, type import random at the top of your code. Then paste the list of cards. Then type deck.shuffle() at the end of the code that makes the deck of cards.

To get a card from the deck of cards, you can use deck.pop().