| | |
Memory Game
Thread Solved |
•
•
Join Date: Apr 2006
Posts: 114
Reputation:
Solved Threads: 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
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
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....
I hope u got my point....
# Never say impossible 'cause impossible itself says:
"I M POSSIBLE":) :) :)
#Your I Can is more important than your I.Q.
"I M POSSIBLE":) :) :)
#Your I Can is more important than your I.Q.
![]() |
Similar Threads
- memory game problem (Visual Basic 4 / 5 / 6)
- C++ Memory game help needed (C++)
- Memory game (Python)
- memory game (C++)
- Hiii am an amateur programmer.. Want a MEMORY GAME (C++)
- Need help finishing a Memory Game (Java)
- Memory game code issues (Visual Basic 4 / 5 / 6)
- Memory game with c++ console applicaton (C++)
Other Threads in the Java Forum
- Previous Thread: Exception Question
- Next Thread: Threading problemos - yet again! (almost done though)
| Thread Tools | Search this Thread |
add android api applet application applications array arrays automation bank binary bluetooth chat class clear client code codesnippet collections component converter database development dice digit eclipse equation error event formatingtextintooltipjava fractal functiontesting game givemetehcodez graphics gui health html hyper ide idea image infinite input int integer j2me java javame javaprojects jni jpanel julia linux list loop looping main map method methods mobile myregfun mysql netbeans newbie nonstatic openjavafx parameter pearl php print problem program programming project recursion repositories scanner scrollbar server set size sms sort sorting spamblocker sql sqlserver state storm string superclass swing swt text-file thread threads tree windows





