Hi there,
My name's James and I'm developing a game that
requires a player to remember a sequence of images
randomly generated by the program.
i.e : When the game starts, an image of 3 different
images will show sequentially on a second, and then
the user will be prompt to remember that exact
sequence of images.
My problem is : How do I write the program so that it
would:
1. Generate any random images from a list of 12,
starting with 3 images.
2. Compare the selection made by the player with those
that the program generated in the first instance and
then verify its validity.
3. Add 5 points to the user's score for every
successful attempt, no point for an invalid attempt.
I was told that the use of java.util.Random could do
that, hence i hope fellow java coders here could
provide a sample source code in using the Random
class.
Also, my second query:
1. i.e : Once 5 successful attempts have been achieved
by a player, how should the program be designed where
it would increase the number of images(from 3
initially to 4) for a challenging experience?
Perhaps with the use of java.util.Vector, or maybe
using an int array?
Once again, i'll would need the immense help from
folks here to show the way...appreciate the
assistance.
james
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com