| | |
Memory Game
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
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 |
actuate android api applet application applications array arrays automation balls bank binary bluetooth business chat class classes clear client code codesnippet collections component database defaultmethod development dice dragging ebook eclipse error event exception formatingtextintooltipjava fractal froglogic game givemetehcodez graphics gui hql html ide image infinite input integer intersect invokingapacheantprogrammatically j2me java javaprojects jni jpanel julia linux list loop looping map method methods mobile mysql netbeans newbie numbers openjavafx parameter php print problem program programming project recursion repositories scanner screen scrollbar server set size sms sort sorting sql sqlserver state storm string sun superclass swing swt text-file threads time tree windows





