Skip to content

Memory Flip Game

AndrewKeohane edited this page May 6, 2012 · 2 revisions

The Memory Flip mini-game challenges you to match each term with its definition by flipping over the correct cards. To flip over a card, click on it once. The card will flip over and reveal text for either a term or a definition from the study guide you have selected. When you flip two that match, they will go away and your score will increase. The faster you match all the cards, the more points you will earn.

Memory Flip is implemented as a subclass of miniGame, and can be instantiated and run in the same way as any mini game. If Memory Flip is not passed any study material, it will default to matching the names of Spongebob characters.

Memory flip uses a class called card to manage all of the cards to be flipped. Cards are hard-coded to be 100 by 100 pixels, and the number of cards displayed on screen is scaled to fit. A problem with text flowing past the edge of the card has been fixed by calling the get_font_surf function from textWrapper.py.

The score system is a multiplier based on time. Completing the game instantly will result in twice the score of completing after the time allotted.

Clone this wiki locally