diff --git a/app.js b/app.js index ddbe9e9..c37369b 100644 --- a/app.js +++ b/app.js @@ -39,20 +39,15 @@ function regle() { document.body.appendChild(button); } */ - +var machine_coins = 1000 +var player_coins = 100 function jeu() { - var machine_coins = 1000 - var player_coins = 100 - while (player_coins > 0) { - userinput = prompt() // a dev + + if (player_coins > 0) { + userinput = document.getElementById("mise").value // a dev console.log(userinput) - while (userinput > 100 || userinput < 0) { - console.log("A") - // Ask - } var tirage = [nbAlea(), nbAlea(), nbAlea()] console.log(tirage) gain(tirage) - } } diff --git a/index.html b/index.html index 9ad9729..f053580 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,11 @@ Document -

MACHINE A SOUS NSI

+

MACHINE A SOUS NSI

+
+ + +
\ No newline at end of file