berdugo.s
3 years ago
commit
c739105f7e
1 changed files with 25 additions and 0 deletions
@ -0,0 +1,25 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<body> |
||||
|
<script> |
||||
|
var jeton_bac=1000 |
||||
|
var jeton_joueur=100 |
||||
|
num_tir=[] |
||||
|
alert "bite" ; |
||||
|
var nb_jet = int(input("combien de jetons voulez vous mettre dans la machine (max:100) ?")) |
||||
|
if (jeton_joueur > nb_jet && jeton_bac > 500 && nb_jet < 100 && nb_jet> 0) { |
||||
|
<button oneclick="gain()">lance le jeu</button>} |
||||
|
function gain() { |
||||
|
for i in range (3): |
||||
|
num_tir[i]=nbAlea ()} |
||||
|
if (num_tir[1]=num_tir[2]),( |
||||
|
function nbAlea (){ |
||||
|
var tirage = Math.floor(Math.random() * 10); } |
||||
|
</script> |
||||
|
</body> |
||||
|
</html> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
Loading…
Reference in new issue