Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Commit

Permalink
Only automatically highlight hexagons one in ten times
Browse files Browse the repository at this point in the history
  • Loading branch information
joelpurra committed May 20, 2014
1 parent c548bba commit 5800cd1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/resources/javascript/main.js
Expand Up @@ -142,9 +142,14 @@
}

function highlightSomethingThatIfNothingHasHappened() {
var rnd = random.integer(10);

if (highlightCounter === 0) {
highlightRandomLine();
highlightRandomHexagon();
if (rnd < 9) {
highlightRandomLine();
} else {
highlightRandomHexagon();
}
}
}

Expand Down

0 comments on commit 5800cd1

Please sign in to comment.