microsoft / pxt-microbit

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

Add code validation rules #5169

Closed Jaqster closed 1 year ago

Jaqster commented 1 year ago

Hi Galen, can you help us add code validation to a few of the micro:bit tutorials? @kiki-lee and @thsparks know how to do this and can show you...

kiki-lee commented 1 year ago

Happy to help. @ganicke Code validation is a lot like adding blockconfig.global or local.

Here's the documentation page for it (it's at the bottom) https://dev.makecode.com/writing-docs/tutorials/basics

Or, you can see how it's used in the Collect the Clovers tutorial: https://github.com/microsoft/pxt-arcade/blob/master/docs/tutorials/collect-the-clovers.md