Review Algorithmic Thinking by Building a Dice Game - Step 14

Tell us what’s happening:

I can complete step 14 with or without completing this specific part:

Call your checkForStraights function when the rollDiceBtn is clicked to complete your dice game!

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region



rollDiceBtn.addEventListener("click", () => {
  if (rolls === 3) {
    alert("You have made three rolls this round. Please select a score.");
  } else {
    rolls++;
    resetRadioOptions();
    rollDice();
    updateStats();
    getHighestDuplicates(diceValuesArr);
    detectFullHouse(diceValuesArr);

  }
});

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0

Challenge Information:

Review Algorithmic Thinking by Building a Dice Game - Step 14

You need to call the function, I don’t see it in your code. So is this a question or some quitch?

can you provide the full code please (from the top to the bottom) so we can see if we have the same result as you?

It is missing the test for the function call. I opened an issue for it.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.