/* aPerdu : retourne vrai si le joueur a perdu * c'est à dire si un des indicateurs n'ets plus compris entre 0 et 100 */ function aPerdu() { for( i in indics) { if (i <=0 || i >=100) { return true; } } return false; } /* * getRndInteger : obtient un entier aleatoire entre min et max */ function getRndInteger(min, max) { return Math.floor(Math.random() * (max - min) ) + min; } /* getEvent : */ function getEvent() { }