(all games) access arbitrary move in Replay
Posted: 29 October 2013, 20:53
this is probably a lot of code work, but...
the Replay function should support random access - the ability to go forward a move, backward a move, or access any move you like without having to watch the intermediate moves and animations
probably the easiest implementation would be:
* if auto-play or advance 1 move, then use current implementation
* otherwise replay the game on the server (without displaying anything, waiting, or sending anything to the client) until target move is reached, and send that over
more intelligent approaches can be taken but will require much more work.
currently you can only move forward, and you must watch the intermediate move animations (which can take a considerable amount of time)
the Replay function should support random access - the ability to go forward a move, backward a move, or access any move you like without having to watch the intermediate moves and animations
probably the easiest implementation would be:
* if auto-play or advance 1 move, then use current implementation
* otherwise replay the game on the server (without displaying anything, waiting, or sending anything to the client) until target move is reached, and send that over
more intelligent approaches can be taken but will require much more work.
currently you can only move forward, and you must watch the intermediate move animations (which can take a considerable amount of time)