microsoft / pxt-microbit

A Blocks / JavaScript code editor for the micro:bit built on Microsoft MakeCode
https://makecode.microbit.org
Other
725 stars 597 forks source link

"Games: Tug of LED": Missing 'Math' category in Toolbox in Python and JavaScript tutorials #5579

Open v-katherine opened 7 months ago

v-katherine commented 7 months ago

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: missingmath

Additional context: 1.OS: Mac OS 13.6.6 2.makecode.microbit,org version: 7.0.4 3.Microsoft MakeCode version: 10.0.11

ganicke commented 4 months ago

The Math category doesn't appear due to Math.round() not being part of the Toolbox blocks when in Python or JavaScript editor modes.