views:

23

answers:

1

Hii, I want to calculate time taken by the player for making his move. My player can pick his coin and make his move to a box(like in chess). If my player pick his coin early but make his move very lately, then how to calculate time between AI and player move

A: 

One option is to reset/abort the move action if it is not finished after a certain amount of time, say 5 secs or whatever is reasonable to your game.

Frank Bollack