You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
545 B
26 lines
545 B
3 years ago
|
<!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>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|