CSc 430 - Memory Game - Prof Domanski
The objective of this program is to have you integrate several basic GUI controls into a single comprehensive game. Here, the concepts to understand are command buttons (used in a collection again) and their properties, plus text boxes and labels, radio buttons, frames, scroll bars, and timers.
How to Play - Pressing START will display a random set of 16 binary numbers on buttons, allowing the user time to memorize them; each of the numbers displayed is either a 0 or a 1. When the user thinks (s)he is ready, a timer (controlled by the scroll bar) will make all 16 numbers disappear. The user will then guess the values of all 16 buttons, one at a time. If a guess is right, update a display of the number of correct guesses in a row. If a guess is wrong, display a message to that effect, and initialize the 'in-a-row' count back to zero. If they've guessed all 16, ask if they want another set displayed, and if so, display them again, but keep the 'in-a-row' count intact.
Main Idea When the program starts, enable a scroll bar whose minimum value is 2 seconds, and maximum value is 10 seconds. Dont display any values until the player sets the time with the scroll bar. Then display the values ... and let the timer event cause them to disappear.
During regular play, the player should click on a 0 or a 1 in a frame ... and the clicked value should be used to compare against the stored value.
Finally, once you get these things working, see if you can add a background to the form itself so it looks like it should be more fun to play.
Due: 3 weeks. Must be compiled and presented in class. Good luck!
Last edited by DrB on 02/18/09