Group Details

Group Photo

Advanced Developers

This group is for board designers who are comfortable with the basics of creating interactive boards and want to take advantage of the more sophisticated Boardmaker Plus features.

Activities 33
Activity Sets 0
Members 196
Discussions 13
Date Created

12/16/2008

memory game programming
photo image
by region5, 12/6/2011 2:22 PM

There is a memory game uploaded now, it's called 'Thanksgiving Find the Pair' http://www.boardmakershare.com/Activity/1221953/Thanksgiving-Finding-the-pairs-with-6-Spinner Looks neat, although I wouldn't want the spinner for turn taking.

photo image
by sage, 7/1/2009 1:37 PM

Sounds like a great project.  I would like to help.  Like a lot of parents, my time is limited, but this sounds like fun. 

Lets think through the basics and bounce it off of Yuichi.

I imagine a one board grid where selecting the button would unhide the picture, the next selection would unhide another picture, if a match occurs some animation would highlight the success and the pictures would stay exposed.  If no match then the pictures are recovered. 

Variables: 
no. players
whose turn
pick one or two
each grid square needs a variable, covered, exposed, selected on current turn
something to keep track of whether any unexposed grids remain etc.

The logic would best be handled in a macro which could called from each of the grid buttons.  This makes the implementation and editing much simpler.

The next step would be randomizing the images under the buttons at initialization,  maybe with a picture library much larger than the number of pairs.  I wonder if there is a way to take a subset of the MJ symbol library.

I will leave it at that for now.  Katie, I'll send you a friend request.   I hope that Yuichi will comment.
Jim

photo image
by katie.lyon, 6/10/2009 7:24 AM

Hi Guys,
Just trying to work out how I would program a memory game (using set button picture) and I am guessing variables. ie. if you get a pair, the set button picture remains but if you don't match a pair it returns to the original picture. Any help would be great as i am sure it can be done and that i am just getting confused.
Thanks

Group Discussions

Use this forum to discuss different topics related to this group.