Skip to main content
Known Participant
April 13, 2013
Answered

Array for different card choices

  • April 13, 2013
  • 1 reply
  • 476 views

Hi,

What should my code look like if I need to create an array which will display different matching game cards i.e. instead of matching colours or graphics, images matching with words etc. Thanks

This topic has been closed for replies.
Correct answer Ned Murphy

Arrays do not display anything, nor do they match anything.  Arrays just store a collection of data.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
April 13, 2013

Arrays do not display anything, nor do they match anything.  Arrays just store a collection of data.

Known Participant
April 14, 2013

OK, a little confused but what advice can you offer regarding what I'd like to achieve?

Ned Murphy
Legend
April 14, 2013

Learn what arrays do and how to use them.  Then look at what purpose they might serve, if any, for what you are trying to accomplish. 

Doing what you seem to want to do does not necessarily need an array at all.  So you might want to focus on what you really need/want rather than thinking something might be useful in some way.  Determine a plan for matching cards first, then determine what elements you need to manage that, then see if an array serves any purpose in achieving that.