|
@ -23,7 +23,7 @@ function gain(tirage) { |
|
|
if (tirage == [9,9,9]) { |
|
|
if (tirage == [9,9,9]) { |
|
|
player_coins = player_coins + machine_coins |
|
|
player_coins = player_coins + machine_coins |
|
|
machine_coins = 0 |
|
|
machine_coins = 0 |
|
|
} else if (tirage[0] == tirage[1] == tirage[2]) { |
|
|
} else if (tirage[0] == tirage[1] && tirage[1]== tirage[2]) { |
|
|
console.log("E") |
|
|
console.log("E") |
|
|
} else if (tirage[0] == tirage[1] || tirage[1] == tirage[2] || tirage[0] == tirage[2]) { |
|
|
} else if (tirage[0] == tirage[1] || tirage[1] == tirage[2] || tirage[0] == tirage[2]) { |
|
|
console.log("K") |
|
|
console.log("K") |
|
|