Review Algorithmic Thinking by Building a Dice Game - Step 1

Tell us what’s happening:

I am being stupid today but are my HTML variables not already assigned in the existing declarations like:
const listOfAllDice = document.querySelectorAll(“.die”);

Is there something else expected here?

Your code so far

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

/* file: styles.css */

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

let isModalShowing = true; 
 let rolls = 0;
 let score = 0,
 let total = 0;
 let round = 1;



// 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/126.0.0.0 Safari/537.36 Edg/126.0.0.0

Challenge Information:

Review Algorithmic Thinking by Building a Dice Game - Step 1

yeah I don’t know what that hint means but to me it looks like you didn’t finish everything they asked for?
Each time the user rolls the dice, you will need to keep track of all of the dice values. Create a variable diceValuesArr to track this.

1 Like

Hey, thanks - it’s all sorted.

2 Likes

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