+ "game.clocks": function(newState) {
+ this.virtualClocks = newState;
+ setInterval(function() {
+
+ // TODO: run clock of current turn, stop at 0, clearInterval in the end
+ // https://www.geeksforgeeks.org/create-countdown-timer-using-javascript/
+ // if it was my turn, call gameOver. Otherwise just stay at 0 and wait.
+ if ( ...........)
+//à 0, bloquer puis si mon temps : perte au temps. Sinon attendre message adversaire (il peut être offline).
+
+ });
+ },