At the compete games, based on turns, what is the correct way, or the most efficient to control the timeout in java?
I started inserting the reference time for the timeout (Using Calendar.getInstance().getTimeoutInMilissecons()), after send my command and before start to read the next turn data. But somethimes, the time to read the first input is much more than 100ms..
So I started to set the reference data, after the first read of the input data... But, somethimes, with a max of 50ms of timeout, I lost the game...
Is there any guide? I'm playing Smash the code.