doAllSetTurn(userId:int, milliSecondsInTurn:int) DescriptionCall this function to force a player to make his turn, prevents hackers from stagnating your game. ParametersuserId - the user ID of the player you want to make a move. milliSecondsInTurn - the time the user has to make his turn before automatically losing. Exampleit is the player 1 turn to play in a game of TicTacToe where each move must be made after a maximum of 5 seconds doAllSetTurn(1, 5000); In this example after 5 seconds the player with id 1 will be declared as the loser.
|