List: memory cards

Classwork: Homework discussion
The assignment below is designed to help you implement the memory cards program.
The idea is that letters a through h are associated with rectangles rect_a through rect_h. When a player chooses letter a, he or she is choosing rect_a. Think of this: when the user click on a memory card all you know is the location of the point and then you use the point to figure out which rectangle contains that point.
A rectangle in this assignment is associated with a file name just like in the memory cards a rectangle is associated with an image ( an image name ).
If you look at rect_a and rect_e, both are associated with the same file name. So picking a rectangle allows you to check whether the names are equal. But how do you work this out when you shuffle them? That is the part you have to think about.

rect_a = 'a'
rect_b = 'b'
rect_c = 'c'
rect_d = 'd'
rect_e = 'e'
rect_f = 'f'
rect_g = 'g'
rect_h = 'h'

original_images = ['trees.bmp','sky.bmp','water.bmp','lilypads.bmp','trees.bmp','sky.bmp','water.bmp','lilypads.bmp']
    
rectangles = [rect_a,rect_b,rect_c,rect_d,rect_e,rect_f,rect_g,rect_h]


## Write a program in python, twoMatchingFiles_YI.py to prompt the user for two strings from 'a' through 'h'(in the alphabet). Use the variables shown above.
## 1. Check if the user guesses two matching bmp file names. Use a for loop to accomplished this.
## 2. Loop until the user found a match.
## 3. Prompt the user to quit? or play again?
## 4. If play again is selected, randomly scramble the bmp file names before the program continues.
## 5. If you have already written your program for the matching cards, copy your code snippet
##    for this part of the program.