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.
 
 
 

16 lines
330 B

var machine_coins = 1000
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 {
}
}