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
Describe the bug
"Games: Tug of LED": Missing 'Math' category in Toolbox in Python and JavaScript tutorials
Steps to reproduce the behavior
1.Navigate to https://makecode.microbit.org/beta.
2.Games->Tug of LED->Python or JavaScript Start Tutorial.
3.Go to step6 and click 'rounded' in content.
Actual behavior: Missing 'Math' category in Toolbox so that there is no response when click 'rounded'.
Expected behavior:
Open Math category in Toolbox.
Screenshot:
Additional context:
1.OS: Mac OS 13.6.6
2.makecode.microbit,org version: 7.0.4
3.Microsoft MakeCode version: 10.0.11
The text was updated successfully, but these errors were encountered:
@abchatra, @riknoll - either we need Math.round() added to the JS/Python Math category or the hint code will need to change from Math.round(rope) to something dumb like rope - (rope % 1).
Because, Math.round() isn't available from the list, therefore the Math category won't appear in the tutorial run:
Update: this is because Math.round() is not part of monacoSnippets.ts.
Could it be added?
{name: "Math.round",snippetName: "round",snippet: `Math.round(1.2)`,pySnippet: `round(1.2)`,attributes: {weight: 73,blockId: "math_js_round",jsDoc: lf("Returns an integer closest to the number")},retType: "number"},
Describe the bug
"Games: Tug of LED": Missing 'Math' category in Toolbox in Python and JavaScript tutorials
Steps to reproduce the behavior
1.Navigate to https://makecode.microbit.org/beta.
2.Games->Tug of LED->Python or JavaScript Start Tutorial.
3.Go to step6 and click 'rounded' in content.
Actual behavior:
Missing 'Math' category in Toolbox so that there is no response when click 'rounded'.
Expected behavior:
Open Math category in Toolbox.
Screenshot:

Additional context:
1.OS: Mac OS 13.6.6
2.makecode.microbit,org version: 7.0.4
3.Microsoft MakeCode version: 10.0.11
The text was updated successfully, but these errors were encountered: