this project is about adding a spin to a slot game.
attached file slot_spin is already finished game without the symbols.
the project is about adding the symbols. and showing the correct result after some random numbers were generated.
generate any 15 random numbers and show correct result.
necessary images are in
each slot wheel has to move 1/2 symbol too far down and then back.
the 1/2 symbol which is visible on top should be the next symbol moving down on next spin.
pls send pm for demo.
most important for this project is:
the spin should be able to wait for the random number result (this is because later on this will be used for client server connection where random numbers will be generated on server side)
so the time which is necessary for the spin is not known before but we have a default value.
it should just keep spinning until the numbers are "here"
the client server connecion is not part of this project. it should be possible to test this "spin - more function" with a thread
Thread.sleep(X) - defines the time until random numbers are here. x < default spin duration - do nothing. else spin more until x is finished.
random_game1_1 = nextInt(15);
random_game1_2 = nextInt(15);
random_game1_3 = nextInt(15);
random_game1_4 = nextInt(15);
variable X can be any value e.g. wait for 1 sec or 1minute, because later it is not known how much time is neccessary until server will respond.
of course there is a default value which means server respond within time.