fix(curriculum): typos in building a Dice Game Step 13 (#55773)

pull/55774/head
Abdul Muqsit 2024-08-07 08:39:18 +05:00 committed by GitHub
parent d2c34bbccf
commit 77662f8ac0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ dashedName: step-13
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.
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..
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.
Don't forget to call your new function when the dice are rolled.
@ -21,7 +21,7 @@ You should have a `detectFullHouse` function.
assert.isFunction(detectFullHouse);
```
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 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`.
```js
resetRadioOptions();
@ -31,7 +31,7 @@ assert.strictEqual(scoreInputs[2].value, "25");
assert.strictEqual(scoreSpans[2].innerText, ", 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`.
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`.
```js
resetRadioOptions();