i want to remove a card from a randomly shuffled deck. so that each time a card is picked from the again shuffled deck. that card is eliminated from further play until all 52 cards are drawn. in python3.7
Brad_7
0
Newbie Poster
Recommended Answers
Jump to PostIf the deck is shuffled then it makes no difference which card you remove, so why not just remove the last one? (May make no difference in Python, but for languages with simple arrays it's lot easier.)
All 3 Replies
rproffitt
2,565
"Nothing to see here."
Moderator
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Reverend Jim
commented:
Doh!
+15
rproffitt
commented:
Double up!
+15
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.