Bit:Bot Gym

Write the blocks in MakeCode, copy what its JavaScript tab shows, paste it here, and watch the robot do it. Nobody has to wait for the real one.

Program

Starting MakeCode… It opens with the 4tronix Bit:Bot extension already added, so both sets of drawers are there. This part needs the internet.

Build your blocks on the left and press Run. Every time MakeCode saves, the gym takes the code, so Run always plays what you can see. Or press Open a .hex to load a program you have already built.

The room 0.0 s

Robot settings

Measure your own Bit:Bot once and set these, then the gym stops lying to you. If your robot reads the other way round, press the button above.

Program log what each board did, and when

Shadow Monster learns how bright the room is when you press Run, then sleeps. Press Run, wait for the sleepy eyes, then switch the torch on — that is the jump it is waiting for. Drag the torch to chase it into the corners - it runs away from light, it does not follow it.