Final - Memory Game
Final - Memory Game
Final - Memory Game
The player will be given a few options to play the game, which includes playing single player,
player vs computer, or player vs player, as well as difficulty levels that change the number of
cards used on the board.
Player Modes:
Single Player Mode Single player mode is a relaxed mode of the game. There is a
timer that counts up and allows you to pause the game as
needed and resumes when the player clicks “Continue” button
or starts clicking on the cards.
At the end of the game the time it took for the player to find
all of the pairs is displayed, and asks if the player wants to start
again.
Timed Single Player Mode In the timed single player mode, the user must get as many
pairs as they can during the allotted time.
Easy – The computer will remember 1/5 times a card and its
position. It will do this for every card.
Medium – The computer will remember 1/3 times a card and
its position on the board.
Whoever has the most pairs after the cards have cleared the
board wins.
Class MemoryModel
The first step we will do is start the game model. This will work with the
MemoryGameTimedFramework
Class Card
Display the cards 1-18 (since they are pair, we will add two cards of the same value on to the
screen).
Class MemoryGameTimedFramework
Creates a timed game framework for single player.
Class MemoryGameCompeteFramework
This framework has you compete with the computer, and you will set the difficulty of the
computer through here via the MemoryModel class.
Class GUIMemoryCards
Uses the Icon class to create the images from the image folder
Class Timer
We will use Timer and an action lister to update the timer.
Class MemoryController
This will communicate between the MemoryView and MemoryModel class
Main Class
This class will call on MemoryView, MemoryModel, MemoryController, and AddTimer, and set
the MemoryView visible.
What to expect
Vs Computer