Free · no signup to try · runs on Chromebooks

Pinball Lab

A pinball machine is a computer you can play. Every bumper, lane and target is a switch; every kick and light is an output; the rules between them are a program. Pinball Lab gives students the machine with no program. The ball hits the bumpers and nothing happens. Students write the rules in Blocks or Python, and the dead table becomes a game they can play.

This is the whole app, opening on Level 1. The guide walks through the first rule: shoot the ball at the dead bumpers, write the bumper rule in Blocks, and play again.

Open it full screen

Using this with a class? Make a free class and add your students yourself: each gets a username and password, with no email or Google account needed. Or give them one join code. Using Google Classroom? Post the link there; with a free class, the link also puts each student in your class, so you see their work. mytekDev is also available from the Google Workspace Marketplace, so your school's Google admin can install it for everyone.A first lesson: Open it on the projector at Level 1, press play and shoot the ball: it hits the pop bumpers and nothing happens, no kick, no light, no points. Ask why. Then build one rule in Blocks with the class, when Bumper 1 is hit, pulse its coil for 30 ms, add 100 points, and play again. Ask what the machine knows about the ball, and what it does not.

Set up a free class Share to Google Classroom
Put this on your class site

Students can use Pinball Lab right on your page, with no account. What they make stays on that page; to keep their work, they make a free account.

Google Sites: Insert, then Embed, then By URL, and paste this address.

https://mytekdev.com/try/pinballlab?embed=1

Canvas, a blog, or any page that takes HTML: paste this code where you edit the page as HTML.

<iframe src="https://mytekdev.com/try/pinballlab?embed=1" width="100%" height="640" style="border:0" allow="fullscreen" title="Pinball Lab demo from mytekDev"></iframe>

What a student actually does

The first view is a pinball machine in a dim game room, a ball waiting on the plunger. Hold Space and let go to shoot, flip with the Shift keys. The ball hits the three pop bumpers and nothing happens: no kick, no flash, no points, because no rule tells the machine what to do. The flippers and the plunger work anyway; they are wired to the buttons, as on a real machine.

A rule is a switch and what to do when it closes: when Bumper 1 is hit, pulse its coil for 30 milliseconds and add 100 points. The student builds it in Blocks, presses play, and now the bumper snaps down on the ball, flashes and scores. The Python tab shows the same rules as Python, and the Rules tab says each one in plain words with how many times it ran.

Nine levels are built. Light the top lanes and pay a bonus when all three are lit. Knock down the drop targets and stand them back up. Keep a coil from burning out, because a coil left on heats up. A timer that lights a lamp for 10 seconds. Lock a ball in the saucer and start multiball. A ball save, an end-of-ball bonus and a tilt. Modes whose own rules take over a switch while they run. And the switch matrix under the glass: a computer that reads its switches too slowly misses a fast spinner, and a missing diode makes a ghost switch.

Table, Under the glass shows the switch matrix lighting up as the computer reads it and each coil's heat. Table, Test bench lets a student close any switch by hand and see which rules ran. File, The rule sheet prints a shot map, each rule in plain words, the scoring from the last game and the program.

The Blocks tab with one rule: when any bumper is hit, pulse its coil for 30 ms, then add 100 points. The toolbox lists Bumpers, Slingshots, Score, Logic and Numbers.

One rule for three bumpers. It runs each time any bumper's switch closes, and "its coil" is the coil of the bumper that was hit.

What they are learning while they work

Nothing here is presented as a lesson. This is what the machine and the levels are made of.

What the student doesWhat it is
Builds when Bumper 1 is hit, pulse its coil, add 100 points Events. A program that waits for something to happen and then acts. Every rule on a pinball machine is one: a switch closes, the rule runs.
Changes Bumper 1 to any bumper and uses its coil One handler for many inputs. The rule is told which switch closed, so one function serves a whole group.
Lights each lane and checks whether all three are lit Lists and a question about the whole list. A row of lanes or a bank of targets is a list; all lit and all down are questions about every item in it.
Turns a coil on, watches it burn out, and changes it to a pulse Outputs with limits. A coil heats while it is on. Rules pulse coils for a few milliseconds; a rule that leaves one on breaks the hardware.
Lights Hurry for 10 seconds with a timer Timers and time. A rule runs to its end at once and never waits. Anything that happens later is a named timer.
Lights Lock, locks a ball, starts multiball State. Whether the lock is lit is a value the rules keep, and it has to be put back when the next ball starts.
Slows the scan and loses spinner turns, then takes the diodes out The layer under the program. The computer cannot see the ball. It reads a grid of switches over and over; a switch that closes between two readings is never seen, and without diodes three closed switches make a fourth look closed.
Watches a heavy ball roll down no faster than a light one Energy and motion. The slope gives the ball energy, the rubber and the rolling take it, and the coils add it from the wall socket.

How to tell whether it landed

Ask, and let them show you on the machine. A student who has understood it can answer these without the app's help.

Use it in your subject

Not a technology class? Then the app is how students show what they learned in your unit. More projects for every subject.

Computer science, middle and high school (CSTA 3A-AP-16, 3A-AP-14, 2-AP-17)

Events and handlers, lists of lanes and targets, timers, state that resets each ball, and a test bench for closing switches by hand.

Computing systems (CSTA 3A-CS-01)

The switch matrix under the rules: a scan, a switch too fast for it, and the ghost a missing diode makes.

Physical science (NGSS MS-PS3-5, MS-PS2-2)

Energy given by the slope and the coils and taken by rubber and rolling; a ball rolls down the slope at the same rate whatever its mass.

Game design

What a rule is worth, how fair a ball save is, and when a mode should take over.

Practical notes

For a class with one projector

Play Level 1 on the projector and let the class say what the rule should be. Then open Table, Test bench: the ball stays put, and clicking a part and closing its switch by hand shows which rules ran, which coils fired and what scored, so the whole class can test a rule without anyone having to hit the shot.

Common questions

Is it free?

Yes. Pinball Lab has no paid tier, and it can be tried right on this page without an account. Saving needs an account.

Does it work on a Chromebook?

Yes. It runs in the browser with nothing to install, and on a touchscreen it shows big flipper buttons.

Is it a real pinball machine?

It is modeled on one. The playfield is about 20 1/4 by 42 inches, tilted 6 1/2 degrees; the ball is 1 1/16 inches and 80 grams and rolls down the slope at about 0.79 meters a second faster every second, as a real one does. Switches, coils, lamps, the switch matrix, ball save and tilt work the way a real machine's do. The table, its layout and its art are our own, not any real machine's.

What does it simplify?

The ball always rolls: it never skids, flies or spins off course. The rubber bounces the same at every speed, and no one has published measured values for pinball rubber, so those numbers are a classroom model. The machine watches the ball itself to notice one that is stuck; a real machine cannot see the ball and waits for no switch to close. Modes take over a switch by which one started last; real pinball software uses a priority number. A coil here burns out in about 7 seconds; real coils vary.

Do students need to know Python?

No. Every level can be done in Blocks, and the Python tab shows the Python the blocks make. A student who wants to can write the Python directly.

Is there gambling in it?

No. There are no coins, credits or prizes, and nothing to buy. The score is the only reward.

Will a shared table play the same for a friend?

Yes. The ball's motion is worked out with only adding, subtracting, multiplying, dividing and square roots, which every computer does the same way, so the same rules and the same button presses give the same game everywhere. Help, Same on every computer? shows the check.

Still have a question? Ask us, and a person will write back.

Where to go next

Start with Pinball Lab

Trying it costs nothing and takes about five minutes. An account is what makes the work last.

Pinball Lab is one of the making apps on the platform. The physics is our own, written for this app, and runs the same on every computer.
Page last reviewed November 2026.
Google, Google Classroom and Chromebook are trademarks of Google LLC.