sacha.serny 3 years ago
parent
commit
ab707c2fcc
  1. 2
      app.js

2
app.js

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

Loading…
Cancel
Save