Coding Project 16 — Building Your Toolbox
KIPR · Botball Explorer
Activity Sections

Introductory · SPIKE Coding Project 16

Building Your Toolbox

Write it once. Use it in every project you ever make.

Project
Coding Project 16
Strand
Coding
Phase
Clean It Up
Time
One class period
What You Are Doing
Gathering your best blocks and variables into one master Toolbox project that every new mission starts from.
What You Need
Before You Start
Project 12 onward — you need a set of working My Blocks worth keeping.
Before you start: type your PIN in the box at the top of the page. Your teacher gave you this number. When you finish, press Download to save a local copy of your answers. This does not turn in your work automatically; give the downloaded file to your teacher.

Try It — How Many Copies Do You Have?

Open your projects from 12 onwards, one at a time, and count.

ProjectHas a drive block?Has a turn block?
12 — Teaching Your Robot New Moves
13 — Deciding What to Do
14 — Seeing Light and Dark
15 — Following the Line

Now find out whether they match

Open the define turn right 90 stacks from two different projects side by side and compare them block for block.

Are they identical?

Somewhere along the way you improved one of these — a better overshoot number, a cleaner stop. Which project has your best version, and do the others have it?

⚠ Your Good Work Is Trapped

Project 12 fixed the problem of building the same thing twice inside one program. It did nothing about building it again in the next program.

Right now every improvement you make lives in exactly one project, and the others quietly keep the old broken version.

Your team has four people, each working on a different mission in a different project. One of them finds a much better turn. How does that reach everyone else?

Learn It — One Master Project

A is a collection of ready-made pieces that any program can use. You have been using one since Project 1: the block shelf itself. Every block on it is somebody’s finished, tested, named work, handed to you so you never build it again.

Two shelves

Code / partWhat it means
the shelf that came with the appMovement, Motors, Sensors, Control… You cannot change these — they belong to everyone.
My BlocksThe shelf you fill. Since Project 12, everything you put here is your own library — but it is trapped inside whichever project you built it in.

The Toolbox project

Here is the fix, and it is a habit more than a feature. You build one master project — call it Team Toolbox v1 — that contains:

Code / partWhat it means
under the hatAll your set blocks — every variable on your cards: positions, speeds, threshold, degrees-per-inch — and nothing else.
beside it on the canvasEvery define stack you own: drive forward, turn right 90, turn left 90, grab, drop off, follow the line…
and no mission blocksThe Toolbox never drives a mission. It is the workshop, not the match.

Then the rule that makes it work: every new mission starts by duplicating the Toolbox in your project list, renaming the copy, and building the mission in the copy. Open a fresh duplicate and everything is already there — variables set, blocks on the shelf, waiting.

Improvements Go to the Master First

Find a better overshoot number? A cleaner drop-off? Fix it in the Toolbox, then in whatever mission copy you are working in. Every duplicate you make from that day on carries the fix.

⚠ Copies Do Not Update Themselves

Be honest about the limit: a mission project you duplicated last week still has last week’s blocks. Duplicating spreads your best work forward, not backward. Old copies have to be fixed by hand — which is exactly why the master must always hold the best version, and why the team has to know it.

Name it like you mean it

One master, clearly named, and a version number that moves: Team Toolbox v1, v2, v3. Mission copies get mission names: M8 Dock Run, not Team Toolbox v2 copy copy. Five minutes of naming saves an hour of “wait, which one is real?”

Do It — Build the Toolbox

Step 1 — Gather your best

For each block, decide which project holds your best version — the one with the corrected numbers and the clean endings. Write it down before you copy anything.

BlockBest version lives in…Why it is the best
drive forward (inches)
turn right 90 / turn left 90
grab / drop off
line follow

Step 2 — Build Team Toolbox v1

New project called Team Toolbox v1. Under when program starts: every set block from your cards — motor card, measuring card, sensor card. Then rebuild each define stack, best version, on the canvas beside it.

Finish the hat’s stack with a single beep, so running the Toolbox proves it is alive without moving the robot.

Step 3 — Duplicate and build from it

In the project list, duplicate the Toolbox. Rename the copy Toolbox Test. Open it — your whole shelf is waiting. Snap a tiny mission onto the hat: drive forward 12, turn right 90, grab.

How long did it take to start this “new project,” compared with building those blocks from scratch?

Step 4 — Fix it once, watch it spread forward

Change your turn overshoot number in the master Toolbox — even by 1, just to trace it. Duplicate again into Toolbox Test 2 and check the number arrived.

Now open your old Toolbox Test and look at the same number.

Which copies got the fix, and which did not? Say the rule this proves.

Step 5 — Write the instructions

On paper or in your team notes, write the three team rules: where new missions come from, where improvements go first, and what the master is never used for. Hand them to a teammate and have them start a new mission using only what you wrote.

Step 6 — Back it up

Duplicate the master one more time and name it Toolbox v1 BACKUP. Never open it. If the master ever gets wrecked — a mission built into it by accident, a define deleted — the backup is your way home.

Score It — Checkpoint

No mission points this time. What you built is the thing that makes every future run faster to write.

My toolbox

Block in the ToolboxInputsWhat it does

Which project?

Where does it happen?Project
An improvement to the turn block goes here first
Mission blocks get built here
This one is never opened at all

Can you do it again?

Think about it

Nothing your robot does changed today, again. Project 9 was the same. What kind of work is this, if it is not making the robot better — and why does it keep winning you time anyway?

The block shelf that came with the app was somebody’s Toolbox once. What do you think their rules were for what got to go on it?

Your Toolbox rule spreads fixes forward but not backward. Real software teams have the same problem with old versions. What would it take to fix an old mission copy — and when is it not worth doing?

Next

One project left. Several missions still have a bonus that means nothing more than “now do that again” — and you are going to stop doing it by hand.

In Project 17 — Repeating Without Retyping, you meet the last loop.

Download saves a local copy of your answers. It does not turn in your work automatically; give the downloaded file to your teacher.

KIPR · Botball Explorer — Introductory Projects · © KISS Institute for Practical Robotics 1997–2026