| | |
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 |
Tag cloud for Java
affinetransform android api apple applet application arc arguments array arrays automation binary bluetooth businessintelligence chat class classes client code component database desktop draw ebook eclipse encode equation error event exception file fractal game givemetehcodez graphics gui helpwithhomework html ide image input integer intersect j2me java javaexcel javaprojects jmf jni jpanel julia linked linux list loop mac main map method methods mobile netbeans newbie number online open-source oracle parameter print problem program programming project properties recursion reference replaysolutions rotatetext scanner score screen scrollbar server set size sms socket sort sql string superclass swing template test threads time tree windows working xstream





