+ 2

What is the easiest way to make a deck of cards in Python?

I’m new to python. I would like to try making a card game eventually. I used to program simple games in BASIC decades ago. I thought I’d take up programming again for fun. Please see the code in my profile. I would welcome any feedback. Thanks.

3rd Feb 2018, 4:09 PM
Jordan Monk
Jordan Monk - avatar
2 ответов
+ 8
I suppose my design would be a function that prints a giant ascii box, with variables passed into it that it would display. there would be a list (with a list of attributes) of cards, and a drawn hand list, cards would be removed from the list and copied onto the hand per turn. or something like that
3rd Feb 2018, 6:42 PM
Ahri Fox
Ahri Fox - avatar
+ 1
Thanks @ Ahri Fox. I took your advice. My code is attached. Let me know what you think. https://code.sololearn.com/cSXviY46eQdB/?ref=app
28th Apr 2018, 2:35 PM
Jordan Monk
Jordan Monk - avatar