Page 1 of 1

Design idea

PostPosted: Sat Jun 04, 2011 12:36 pm
by Clokio
I am making a memory game. I need to store name, image, color.
All the 3 will be choosen randomly and be assosciated together.

Ex:
So I will have a list of 10 names, 10 images, and 10 colors. I guess I will create 3 array: images, name and color.
I will then choose randomly in each array something and put them together to create a person.
Ex: Alex, image xyz, yellow color.

But that process will be repeated 100 time to create 100 persons. Do I need to create 100 array to store them. Is there another way? :mrgreen:

Thanks