Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Pretid authored May 21, 2024
1 parent 3e8c8e8 commit f533806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ <h2>Congratulations, You Won!</h2>
}

function checkWinner(slot1, slot2, slot3) {
const winProbability = 0.5; // 1% chance to win
const winProbability = 1; // 1% chance to win
const randomChance = Math.random();
if (slot1 === slot2 && slot2 === slot3 && randomChance < winProbability) {
document.getElementById("winner-modal").style.display = "flex";
Expand Down

0 comments on commit f533806

Please sign in to comment.