0

Hello,

I am working on a plain old simple text version of a memory game.
The player will be able to match letters of the alphabet by clicking on various numbers. For example

This is what the player will see:

123
456
789

but underneath that will be something like:

ABF
DFA
BDA

If user enters 1 and 6 they get a matching set and the letters underneath will display, if the user enters 3 and 4 the letters underneath will not display.

I am wondering what is the best way to go about programming a game like this. Should I use an array, 2d array, or arraylist. Any suggestions or examples will be wonderful

Thank you,
Kimjack

2
Contributors
2
Replies
4
Views
7 Years
Discussion Span
Last Post by KimJack
0

one 1D array (char type) should do the job... for storing the characters... their indexes will be used in comparing with the value entered by the user. if the character at the indexes (values) enered by the user are same then they will show, otherwise not...
I hope u got my point....

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.