Return to site

Python creating a card memory game

broken image
broken image

If the two face-up cards match, they are removed (or hidden) from play. As with the first card selected, this second choice flips 'face up' as well. The player then tries to find another card that has the same image as the first by clicking the mouse on another card. This selection 'flips' the card over and displays its 'face'. The player subsequently uses the mouse to select a card. Based on the player's choice, your program places the cards - FACE DOWN - on the canvas in the playing space. The player starts by entering their name and the number of cards they'd like to use for the game. On the other hand, if they enter an odd number (9 or 11), I present a warning and 'correct' their entry to the nearest even number for the game. NB: In my game, if the user specifies less than 8 or more than 12 cards, I force them to re-enter their choice.

broken image

Your game must allow the user to play any one of those options as they desire.

broken image

Here's the style of play that your program will implement for this project: On the game board, there are always two identical images.įor our game, you are required to support 8 cards (4 pairs of images), 10 cards (5 pairs of images), and 12 cards (6 pairs of images). The Turtle graphics package is used to build our simple game. SOLVED: Title: Memory Matching Game in Python

broken image