You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ dashedName: step-13
9
9
10
10
If the user rolls three of one number, and two of another number, this is called a full house. You will need to declare a `detectFullHouse` function to check for this.
11
11
12
-
Your `detectFullHouse` function should check if the user has rolled three of one number and two of another number. If so, it should update the third radio button to display a score of `25`, with the correct attributes. If not, it should update the last radio button to display a score of 0, with the correct attributes..
12
+
Your `detectFullHouse` function should check if the user has rolled three of one number and two of another number. If so, it should update the third radio button to display a score of `25`, with the correct attributes. If not, it should update the last radio button to display a score of 0, with the correct attributes.
13
13
14
14
Don't forget to call your new function when the dice are rolled.
15
15
@@ -21,7 +21,7 @@ You should have a `detectFullHouse` function.
21
21
assert.isFunction(detectFullHouse);
22
22
```
23
23
24
-
When a full house is rolled, your `detectFullHouse` function should enable the third radio button, set its value to `25`, and set the third span to display the text `, score = 25`.
24
+
When a full house is rolled, your `detectFullHouse` function should enable the third radio button, set its value to `25`, and set the third `span` to display the text `, score = 25`.
When a full house is not rolled, your `detectFullHouse` function should enable the final radio button, set its value to `0`, and set the final span to display the text `, score = 0`.
34
+
When a full house is not rolled, your `detectFullHouse` function should enable the final radio button, set its value to `0`, and set the final `span` to display the text `, score = 0`.
0 commit comments