We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 246e533 commit 1cf4df9Copy full SHA for 1cf4df9
app.js
@@ -9,7 +9,7 @@ const game = () => {
9
attempts = 0; //set attempts to 0
10
score = 0; //set score to 0
11
levelScore = 0; //set level score to 0
12
- maxAttempts = Math.round(level * 0.5); //set max attempts based on level and difficulty
+ maxAttempts = Math.max(Math.round(level * difficultyMultiplier)); //set max attempts based on level and difficulty
13
guess = 0; //set initial guess value to 0
14
maxGuess = 2 ** level; //set max guess value to 2 raised to level
15
secret = randomInt(1, maxGuess); //set secret value to random integer between 1 and max guess value
0 commit comments