Instructing

BRaiNSTEM™

Millbrook's crew walked out mid-shift. Write Python for the plant's bot, one station at a time, while Foreman Vale coaches from the radio booth.

Teaches Programmingpuzzle
A technician codes at a green terminal in the plant's control booth, a radio on the desk, while a machine sparks on the floor beyond the window

BRaiNSTEM is a Python course set in Millbrook, the last factory in town, which makes crank lamps (hand-cranked flashlights). The crew walked out mid-shift. Foreman Vale runs the nights from the radio booth, and you keep the line moving by writing programs for the plant's bot.

The plant has 11 stations in the order material moves, from Receiving to the Control room, and each one teaches the next piece of Python. Receiving teaches orders, loops and variables: pick() a crate, move_to("RED") or move_to("BLUE"), place() it. Inspection teaches comparisons, if and while: scan() and weigh() each part, accept() it at 190 to 220 grams, reject() the rest. Receiving and Inspection are open now; the other nine are being built.

At each station you do the job once by hand, then 12 short missions ask for programs. Earn two stars on missions 1 to 11 and the station runs on your program from then on. The server replays what your program did and reads how it was written, so printing the expected words does not pass a loop lesson.

What you will do

Write real Python

Your code runs in the browser and drives the bot on the floor. A bad call is refused, and the floor says why.

Answer Vale

When a program fails, Vale asks a question about it and never shows the answer. After three failed runs he offers a smaller practice mission.

Hand off the station

Two stars, with two hints or fewer, give the station to your program and open the next one. Mission 12 returns a day later as a fresh variant, for the third star.

Visit the side rooms

The Python Lab holds about a thousand exercises. There is also a PLC ladder-logic course for adults, a sandbox and a notebook.

A look inside BRaiNSTEM

Concept art: a top-down plant floor with conveyor belts, bins and small bots