Tell us what’s happening:
Task is to set up game framework and program rules and scorekeeping.What is wrong?
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const listOfAllDice=document.querySelectorAll(".die");
const scoreInputs=document.getElementById("three-of-a-kind","four-of-a-kind","full-house","small-straight","large-straight","none-of-the-above");
const scoreSpans=document.querySelector("current-round-rolls","current-round",`label[for="three-of-a-kind"]`,`label[for="four-of-a-kind"]`,`label[for="full-house"]`,`label[for="small-straight"]`,`label[for="large-straight"]`,`label["none-of-the-above"]`);
const roundElement=document.getElementById("current-round");
const rollsElement=document.getElementById("current-round-rolls");
const totalScoreElement=document.getElementById("total-score");
const scoreHistory=document.getElementById("score-history");
const rollDiceBtn=document.getElementById("roll-dice-btn");
const rulesBtn=document.getElementById("#rules-btn");
const rulesContainer=document.getElementById(".rules-container");
const isModelShowing=false;
const diceValuesArr=[];
const rolls=document.getElementById("roll-dice-btn").addEventListener("click",(rolls)=>{rolls=0; rolls.value+1});
const score=document.querySelector("total-score");
const round=document.getElementById("roll-dice-btn").addEventListener("click",(rolls)=>{ rolls=1; rolls.value + 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/142.0.0.0 Safari/537.36 Edg/142.0.0.0
Challenge Information:
Review Algorithmic Thinking by Building a Dice Game - Step 1