Skip to content

Commit 66d29c0

Browse files
SupravisorhuyenltnguyenmoT01
authored
chore(curriculum): add quotes to strings in Dice Game (freeCodeCamp#55537)
Co-authored-by: Huyen Nguyen <[email protected]> Co-authored-by: Tom <[email protected]>
1 parent e9b7008 commit 66d29c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657caf204c0d672a35411c31.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dashedName: step-6
77

88
# --description--
99

10-
Each time you roll the dice, you could end up with a `"Three of a kind"`, `"Four of a kind"`, `"Full house"`, `"Straight"` or a random combination of numbers. Based on the outcome, you can make a selection and add points to your score.
10+
Each time you roll the dice, you could end up with a `Three of a kind`, `Four of a kind`, `Full house`, `Straight` or a random combination of numbers. Based on the outcome, you can make a selection and add points to your score.
1111

1212
Start by creating a function called `updateRadioOption` that takes an index and a score value as arguments. It should set the `scoreInputs` at that index to be enabled, set the value of that input to the score, and display `, score = ${score}` in the correct `scoreSpans` element.
1313

@@ -32,7 +32,7 @@ assert.isFalse(scoreInputs[0].disabled);
3232
assert.deepEqual(scoreInputs[0].value, "10");
3333
```
3434

35-
`updateRadioOption` should update the text of the `scoreSpans` element at the provided index to be the text `, score = ` followed by the given score.
35+
`updateRadioOption` should update the text of the `scoreSpans` element at the provided index to be the text `", score = "` followed by the given score.
3636

3737
```js
3838
assert.deepEqual(scoreSpans[0].innerText, ", score = 10");

curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657cf677438e705eab9fd1f9.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dashedName: step-7
77

88
# --description--
99

10-
If you roll the dice and get a `"Three of a kind"` or `"Four of a kind"`, then you can get a score totalling the sum of all five dice values. To calculate this, create a `getHighestDuplicates` function which takes an array of numbers. The function will need to count how many times each number is found in the array.
10+
If you roll the dice and get a `Three of a kind` or `Four of a kind`, then you can get a score totalling the sum of all five dice values. To calculate this, create a `getHighestDuplicates` function which takes an array of numbers. The function will need to count how many times each number is found in the array.
1111

1212
If a number appears four or more times, you will need to update the `Four of a Kind` option with your `updateRadioOption` function. If a number appears three or more times, you will need to update the `Three of a Kind` option. In both cases, the score value should be the sum of all five dice.
1313

0 commit comments

Comments
 (0)