# Review Algorithmic Thinking by Building a Dice Game - Step 14

### Tell us what’s happening:

i dont know i got this error “If a large straight is rolled, your checkForStraights function should also enable the fourth radio button, set the value to 30, and update the displayed text to , score = 30.”

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

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

const checkForStraights = (dicenumber) => {
const sortedDiceNumber = dicenumber.sort((a, b) => a - b);
const diceString = sortedDiceNumber.join("");

const smallStraightsPatterns = ["1234", "2345", "3456"];
const largeStraightsPatterns = ["12345", "23456"];

if (largeStraightsPatterns.some(pattern => diceString.includes(pattern))) {
} else if (smallStraightsPatterns.some(pattern => diceString.includes(pattern))) {
} else {
}
};

if (rolls === 3) {
} else {
rolls++;
rollDice();
getHighestDuplicates(diceValuesArr);
detectFullHouse(diceValuesArr);
checkForStraights(diceValuesArr);
}
});

if (rolls === 3) {
} else {
rolls++;
rollDice();
getHighestDuplicates(diceValuesArr);
detectFullHouse(diceValuesArr);
checkForStraights(diceValuesArr);
}
});

// User Editable Region
``````
``````/* file: styles.css */

``````

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

### Challenge Information:

Review Algorithmic Thinking by Building a Dice Game - Step 14

Welcome to the forum @mr.byn123

Try changing the `else if` statement to an `if` statement.

If a large straight is rolled, the score for a small straight should also display, as a large straight also contains a small straight.

Happy coding