Skip to content
← Back to Community
Memory Match Game
Profile icon
Kvaishnavi

This game gets the coordinates of where the user clicked and stores that in a tuple which then gets stored in a list. It also gets the color of the turtle wherever they clicked and stores that in a list too. Only the first two indexes of the list are stored(0, 1) to mimic two clicks. The minimum and maximum x and y coordinates of the squares are stored in an array. These are used to determine whether or not thee cards are matching. If they are, a white square is drawn over the matching cards. If they are not, then the blue square(the color of the other side of the card) will be drawn back.

Voters
Profile icon
jace625
Profile icon
EvanWalls1
Profile icon
Kvaishnavi