Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Playing Card Sorting
#1
Hello, I'm working on making a standard playing card sorter for one of my classes. I need help writing the code. I don't fully understand Python code just yet. Can anyone write me a simple code that can recognize a standard playing card face to put it in a certain place. If so that would be great.
Reply
#2
Show what you've attempted so far, and where you are having difficulty.
Reply
#3
I'm having trouble starting it is the problem. I'm used to using batch, but it doesn't do what I need it to do.
Reply
#4
We will help you, we will not write it for you,
just try, and show what you've got.
Reply
#5
You could start by creating a variable that will hold that will hold the 52 cards in a random order. Then you need to sort the variable and then (I presume) print the result. We don't know what tools you are allowed to use or not use. What you need is within Python's built-ins, so no third party libraries need to be installed.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Turtle Graphics Card Values in a List Muzz 0 2,341 Apr-11-2019, 12:55 PM
Last Post: Muzz
  card dealer school project kalle1234 5 10,689 Jan-05-2019, 09:21 PM
Last Post: ichabod801
  card 21 trick SummoningZ 21 15,827 Aug-24-2017, 12:42 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020