|
|
@ -3,11 +3,13 @@ |
|
|
|
<body> |
|
|
|
<input type="text" id="name" required |
|
|
|
minlength="4" maxlength="8" size="10"> |
|
|
|
<button onclick="lancement()">lance le jeu</button> |
|
|
|
<button click="lancement()">lance le jeu</button> |
|
|
|
<p id="demo"></p> |
|
|
|
<script> |
|
|
|
let jeton_bac=1000; |
|
|
|
let jeton_joueur=99; |
|
|
|
|
|
|
|
var jeton_bac=1000; |
|
|
|
|
|
|
|
var jeton_joueur=99; |
|
|
|
|
|
|
|
function lancement() { |
|
|
|
let nb_jet = document.getElementById("name").value; |
|
|
@ -58,15 +60,7 @@ if (cars[0] == 9 && cars[1] == 9 && cars[2] == 9){ |
|
|
|
document.getElementById("demo").innerHTML = "simon est gays"; |
|
|
|
gain(1); |
|
|
|
} |
|
|
|
else if (cars[0] == cars[1] && cars[0] == cars[2] ){ |
|
|
|
document.getElementById("demo").innerHTML = "bruno est gays"; |
|
|
|
gain(2); |
|
|
|
} |
|
|
|
else if (cars[1] == cars[0] && cars[1] == cars[2]){ |
|
|
|
document.getElementById("demo").innerHTML = "bruno est gays"; |
|
|
|
gain(2); |
|
|
|
} |
|
|
|
else if (cars[2] == cars[0] && cars[2] == cars[1]){ |
|
|
|
else if(cars[0]==cars[1]||cars[0]==cars[2]||cars[1]==cars[2]){ |
|
|
|
document.getElementById("demo").innerHTML = "bruno est gays"; |
|
|
|
gain(2); |
|
|
|
} |
|
|
|