|
@ -39,20 +39,15 @@ function regle() { |
|
|
document.body.appendChild(button); |
|
|
document.body.appendChild(button); |
|
|
} |
|
|
} |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
function jeu() { |
|
|
|
|
|
var machine_coins = 1000 |
|
|
var machine_coins = 1000 |
|
|
var player_coins = 100 |
|
|
var player_coins = 100 |
|
|
while (player_coins > 0) { |
|
|
function jeu() { |
|
|
userinput = prompt() // a dev
|
|
|
|
|
|
|
|
|
if (player_coins > 0) { |
|
|
|
|
|
userinput = document.getElementById("mise").value // a dev
|
|
|
console.log(userinput) |
|
|
console.log(userinput) |
|
|
while (userinput > 100 || userinput < 0) { |
|
|
|
|
|
console.log("A") |
|
|
|
|
|
// Ask
|
|
|
|
|
|
} |
|
|
|
|
|
var tirage = [nbAlea(), nbAlea(), nbAlea()] |
|
|
var tirage = [nbAlea(), nbAlea(), nbAlea()] |
|
|
console.log(tirage) |
|
|
console.log(tirage) |
|
|
gain(tirage) |
|
|
gain(tirage) |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|