Jump to content

Recommended Posts

Posted

Hello, I have been having issues getting going with this assignment in csc131. I am to write a CLI program in python where all cards are dealt face down initially in a rectangular grid. On each turn, the player identifies two of the face-down cards. These two cards are (briefly) flipped face-up. If they match, they stay face up. If they don't match, they're flipped back over face-down. The play continues until all cards have been matched; no face down cards remain to be tested. And the grid is determined by a prompt from the user. (At most 9x8 or 8x9) My first issue is creating the list for the deck. I will need to have 2 of each card and I'm not sure how to create the list, if i have to put two of each possible card or I'm assuming there is an easier way. Any input on this question or the problem in general would be greatly appreciated.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.