diff --git a/app.js b/app.js index 3975149..2d79708 100644 --- a/app.js +++ b/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")