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

3 years ago
var machine_coins = 1000
var player_coins = 100
function nbAlea() {
3 years ago
return Math.floor(Math.random() * 10);
}
var tirage = [nbAlea(), nbAlea(), nbAlea()]
function gain(tirage) {
3 years ago
if (tirage == [9,9,9]) {
player_coins = player_coins + machine_coins
machine_coins = 0
} else if {
} else if {
}
3 years ago
}