diff --git a/app.js b/app.js index a80421e..d999150 100644 --- a/app.js +++ b/app.js @@ -23,14 +23,22 @@ var player_coins = 100 function nbAlea() { return Math.floor(Math.random() * 10); } + var tirage = [nbAlea(), nbAlea(), nbAlea()] function gain(tirage) { if (tirage == [9,9,9]) { player_coins = player_coins + machine_coins machine_coins = 0 - } else if { + } else if(tirage[0] == tirage[1] == tirage[2]) { - } else if { + } else if(tirage[0] == tirage[1] || tirage[1] == tirage[2] || tirage[0] == tirage[2]) { + +} + - } +var button = document.createElement("BUTTON"); +var button_1 = document.createTextNode("CLICK ME"); +function regle() { + btn.appendChild(button_1); + document.body.appendChild(button); } \ No newline at end of file diff --git a/index.html b/index.html index 0a98982..9ad9729 100644 --- a/index.html +++ b/index.html @@ -1,11 +1,13 @@ + Document - +

MACHINE A SOUS NSI

+ \ No newline at end of file