Capitol Hill Coding
Capitol Hill Coding app icon: Widget, a small teal robot with a screen for a face, waving in front of a hill with a round brick tower

Nobody could wake the robot.
He just needed a program.

Tia Lu fixes old machines on Broadway. One day a little robot comes in that nobody can make go, and Mika and Dev get to keep him if they can wake him up. His name is Widget, and he does exactly what his program says. Movie Night in the park is two weeks away. Can they teach him enough to star in a movie?

Out now for Windows and Linux onitch.io Out now for Windows on theMicrosoft Store Coming soon to theApp Store Coming soon toGoogle Play Coming soon toSteam For Windows and Linux now ยท iPhone, iPad, Mac and Android soon ยท For coders about 6 to 12

โ–ถ Watch the trailer

The title screen: Mika, Widget the robot and Dev in front of a brick water tower, with a Play button

The trailer

Steps. Loops. Python. Movies.

Every picture is drawn by the game itself, and the sounds are the game's own.

From "what is a computer?" to coding with AI

One game takes her the whole way, one idea at a time, and each idea is something she does, not something she is told.

  1. How computers workIn, think, out. Switches, on and off: numbers and pictures in binary.
  2. LogicSteps in order, loops and choices, built with blocks for a robot who does exactly what he is told.
  3. BugsA program that doesn't work yet. Find out why, and fix it.
  4. Real codeThe same programs typed as Python, then lists, functions and classes.
  5. Making thingsHer own movies and games, written in code and played on the big screen.
  6. Coding with AIHow an AI helper works and why it can be wrong, then a small one, built for this game, that writes and changes her own code on the device.
  7. Working as a teamFor those who want more: versions, tidy code, sharing one program and reviews, the habits of coders who build big things together.

How computers work

In, think, out. On and off.

Before any code, a look inside. Every computer takes something in, thinks, and sends something out, and deep down it is all tiny switches.

  • Sort the parts on Lu's shelf: what senses, what thinks, what remembers, what shows?
  • Follow one key press from finger to screen.
  • Flip switches worth 1, 2, 4, 8 and 16 to make any number.
  • Light up a picture from rows of 1s and 0s.
The switch game: make the number 3 by turning on the switches worth 2 and 1, shown as 0011 The pixel game: rows of 1s and 0s on the left and a grid of lights on the right, part way to a heart

Blocks

Steps, loops and choices.

Widget rolls along a path, one block at a time. A block limit makes a loop the easy way out, and puddles that move every day make an if the only way through.

  • Steps in order: step, step, turn left, step.
  • Loops: say it once, then say how many times.
  • If and else: one program that has to work on Monday's puddles and Tuesday's.
  • Every block is one line of Python, and a switch shows the program as code.
A block program: repeat 3 times, step forward, water. Widget is part way along a row of flowers, two of them watered The same kind of program with the Python switch on: for i in range(2), if robot.puddle_ahead(), robot.jump(), else

Bugs

Bonk! Now find out why.

Dev writes programs fast and finds the bugs later. At the park, his programs are waiting to be fixed: a wrong turn, a loop one short, two blocks in the wrong order.

  • Press Go and watch. The block that went wrong lights up.
  • Nothing is marked wrong in red, and there is nothing to lose. Widget says what happened, and you try again.
  • When typed code has a mistake, the message says what to do about it.

Widget: I do not know the word "pritn". Did you mean "print"?

A program with a bug: Widget waters before stepping, and says 'Oops! I poured water where there is no thirsty flower.' A typed loop with no colon: line 1 is marked amber and Widget says 'This for line needs a colon at the end.'

Python

Then she types the real thing.

At the library the blocks come off. The same ideas, in a real coding language: print, boxes with names (variables), loops, if and else, and her own new words with def.

  • Code tiles under the editor let most of a program be tapped together. The keyboard comes up for her own words.
  • The line that is running lights up, so she can see the program go.
  • It is real Python syntax: what she writes here would run on any computer with Python.
for i in range(5): if robot.puddle_ahead(): robot.jump() else: robot.forward()
The Python editor: a for loop with an if and an else on the left, and Widget at the flag past two puddles on the right, on day 1 of 3 A level about def: a new word called hop that steps and waters, used to water a row of four flowers

Movies and games

Write a movie. In code.

The last stop is the Movie Studio. Pick a scene, put actors in it, and tell them what to say and do. Her own movie plays at Movie Night, and then the Studio is hers.

  • Fifteen places, the whole cast, about fifty props and animals, or any emoji.
  • Actors say their lines out loud, move, jump, spin, grow and hide.
  • Add a function called tapped and the movie turns into a game.
  • Eight starters to change and make her own.
scene("night") w = actor("widget") c = actor("cat") w.say("Is that a cat?") c.say("Meow!") for i in range(4): w.jump() c.spin()
A movie in code: five lines of Python on the left, and on the right Widget in front of a glass house asking 'Is that a cat?' with a cat beside him A tap game: Python with a tapped function on the left, a star to catch on the right, and 'Score: 1'

The game studio

Then build a game.

In the Studio, pick a place, add actors and drag them to where they start. Press Make it! and the game writes that picture down as Python, with a pad that moves the player. Then the code is hers to read and change.

  • A pad on the screen, or the arrow keys and W, A, S and D on a keyboard.
  • pressed, touched and tick: code that runs when a button goes down, when two actors bump, and as the clock ticks.
  • Her own actors and places, from the camera or a photo, and her own sounds, from the microphone. They stay on the device.
  • The Python Trail is not needed first: the Studio opens on the hill.
def pressed(key): if key == "right": w.move(1) if key == "a": w.jump() def touched(a, b): sound("ding")
A pad game: Python with a pressed function on the left, and on the right Widget and a star on a playfield, with a pad of four arrows and an A button The game builder: a park with a girl, a dog and a cat placed on it, and buttons to pick a place, add an actor and make the game The shelf of actors: a button to make my own, then Widget, the cast, a cat, a dog and more

The last idea: coding with AI

Say it. It writes the code.

Her own Studio projects have two buttons under the code: Add and Change. She types what she wants in plain words, or says it, and a small helper writes a few lines of the game's Python for her to read and tap in. It is the real thing in miniature: a model that reads her words and her code, and edits that code, with nothing sent anywhere.

  • Made for this game alone, and trained on a few million examples of its own code.
  • It runs on the phone or tablet. No internet, no account, no cloud: what she types or says never leaves the device.
  • It can only write this game's code. It can't chat or answer questions, and when it doesn't understand, it says so.
  • Add writes something new. Change is for a block or a line she has chosen: do this 3 times.
  • It is small and it can be wrong, so a lesson comes first: read the code, run it, fix it. She is still the coder.
# make widget morph into every character for name in CHC.actors: w.morph(name) sleep(1)
The helper: the words 'make widget morph into every character' in a box, and beside it the three lines of Python the helper wrote, with 'Read it first!' Asking out loud: a big green bar that says 'Talk now!' with a microphone and an 'I am done' button

Nine stops on the hill

Each one teaches one idea.

  1. Lu's Fix-It BenchWhat is inside a computer: in, think, out, and memory.
  2. The Water TowerSteps in order. A list of steps is called an algorithm.
  3. The Glass HouseLoops: a short program that does a long job.
  4. The Rainbow CrosswalkIf and else. Look before you roll.
  5. The Train StationSwitches, on and off: numbers and pictures in binary.
  6. The ParkFinding bugs, and fixing them without fuss.
  7. The LibraryFirst Python: print, variables and for loops.
  8. The Coding CrewPython moves Widget: loops, if, else and def.
  9. The Movie StudioMovies made of code, and one of her own for Movie Night.

Then the Python Trail

After Movie Night a second map opens: six more stops, all typed Python, each a bigger piece of the real language.

  1. The Sunday MarketLists: pick one out, add one, loop over all, sort and slice.
  2. The Noodle ShopStrings: upper, f-strings, slices and split.
  3. The Record ShopDictionaries: look up, add, change and count.
  4. The PlayfieldFunctions that return an answer, while loops and random.
  5. The Robot WorkshopClasses: write a recipe, make objects, build one class on another.
  6. The Game JamAll of it together, in movies and tap games with a score.
The Python Trail map: six stops joined by a path, with buttons for My Python and the Notebook A class in Python: FlyingRobot built on Robot, and the words it printed beside it My Python: a list of every piece of Python learned so far, stop by stop

Along the way, My Python keeps every piece she has learned, and the Notebook runs any Python she writes.

And then, the Team Trail

A last, optional map for coders who want more. The Summer Fair wants an arcade game, and the whole Coding Club builds it together. These four stops are not about new Python: they are about how coders work when a program is big and many people are writing it.

  1. The Save ShelfVersions: keep one while it works, write a note, find what changed, go back.
  2. The Tidy WorkshopOne job for each function, written once, with a name that tells.
  3. The Shared TableTwo coders, one program: split the work, keep both changes, leave notes.
  4. The Review BenchRead it before you change it, check a helper's code, change only what was asked.
The Team Trail map in evening light: four stops joined by a path, the Save Shelf, the Tidy Workshop, the Shared Table and the Review Bench A level called Keep both: notes show that Mika and Dev each changed the same line, and Widget asks for both changes to be kept Versions in the Studio: three versions of a game, each with a note and what is different from now, and a button to go back

The first stop comes with a real tool. In the Studio, a Versions button keeps a copy of her game with a short note, shows what has changed since, and takes her back to any version she kept.

Never stuck for long

Every new idea starts with a short lesson: Widget at a board, with code that really runs and a question or two. Any lesson can be watched again, from the stop or from the level she is on.

A lesson on if and else: blocks on a board, and Widget running them along a path with a puddle The third hint: a card that shows one way to build the program, to read and copy The Help Book: a page on if, elif and else, with code to try

Hints come in steps. The first is a nudge. The second shows where to look. The third shows one whole way to do it, for her to read and build herself. And the Help Book has a page, with code to run and change, for every piece of Python the game knows: 49 of them, from print to classes and games.

The last lesson, in the Studio, is about coding with an AI helper: you say what you want, it writes code made of the same ideas, it can be wrong, and you are still the coder. It plays before the game's own tiny helper opens, and explains how that one was made and how to use it.

For grown-ups

Capitol Hill Coding was made by a parent in Seattle for their own young coder, as a sister game to Maple Leaf Math, Licton Springs Language, Cascade Cardboard Creator and Wallingford Writing. Here's what you can expect.

๐Ÿง  Ideas before syntax

Sequence, loops, conditions, binary and debugging all come first, with taps and blocks. Typing arrives once the ideas are already hers.

๐Ÿ What "real Python" means

The app runs a kid-sized part of Python: variables, numbers, words, lists, dictionaries, if, loops, functions and classes. It is real syntax, but not the whole language.

โŒจ๏ธ Typing is optional at first

Code tiles cover most of every level. The keyboard is there when she wants it, and for her own words inside quote marks.

๐Ÿ—ฃ๏ธ Every line is spoken

Everything a character says is read aloud by your device's own voice. You can turn the voice or the music off.

โณ No pressure

No timers, no lives, no scores to lose. A program that doesn't work yet is how every coder spends most of the day.

๐Ÿ”’ Private by design

No ads, accounts, analytics or tracking, and the app never goes online. Everything she writes, and any picture or sound she makes for a game, is saved only on the device. The helper that writes code runs on the device too: what she types or says to it goes nowhere. Privacy policy

๐Ÿ™๏ธ A real neighborhood

Broadway, Volunteer Park and Cal Anderson Park are real public places. Every business, the school and every person in the game is made up.

๐Ÿ’ป Then try it for real

The best outcome is a kid who wants more. Python is free for any computer, and what she learned here is where it starts.

Out now for Windows and Linux. More on the way.

Capitol Hill Coding is on itch.io for Windows and Linux, and on the Microsoft Store for Windows: one purchase is the whole game, with nothing more to buy.

It is coming soon to the App Store (iPhone, iPad and Mac), Google Play and Steam. On phones and tablets it will be free to start: the first four stops cost nothing, and one purchase opens the rest of the hill, the Studio and the trails. No ads and no subscriptions anywhere.

Questions? Visit support or email bugjugapp@gmail.com.