Hello all, I am developing a location based iPhone app wherein a random generator algorithm is needed. The app loads up with a number of images which the user has to reach. An algorithm has to be written where in the sequence of images has to be drawn upon three factors: total time entered by the user to play the game, total distance and the difficulty factor associated with reaching each place. The app continuously monitors if the user has reached the place displayed in the iPhone. If the user is on the same place as the image, the next in line location's image gets displayed. If the total time is less and the number of images in the sequence are more, the algorithm needs to backtrack and find another set of sequence of images of reaching the last destination in the list.
The app needs to implement an algorithm which is dynamically drawing out a sequence of images with respect to distance and time.
Any guidance is appreciated.
Thanks