Jump to content

Simple memory game in python

Featured Replies

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.

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.