The Ringworks · Scaffold ← Back to the machine

The Ringworks algorithm cheat sheet

An algorithm is a list of steps you follow in order. Every room in the Ringworks has one. Find your room, follow its steps, and check the example. Every picture here is a real screen from the game.

Read the machineThe buttonsRoom 1 · LensRoom 2 · RewindRoom 3 · PendulumRoom 4 · Card LoomRoom 5 · Great ClockThe short version
Before anything

Read the machine

Every spin in the game has the same two-part name: which ring and which way.

The ring names: outer, middle and inner, in blue, gold and pink, for the 2 by 2 and 3 by 3 machines.
Which ring = colour + where it sits. Outer is the biggest circle of that colour and inner is the smallest. The 3×3 adds a middle circle in every colour. The 4×4 counts outer, second, third, inner.

Which way

  1. Clockwise ↻ is the way a clock's hands move.
  2. Counterclockwise ↺ is the other way.
  3. Watch the whole circle: every bead on a ring slides together.
  4. The letter in brackets on a block, like (R), is the Rubik's cube name for that ring. You never need it to finish a level.

So a spin reads like this: Inner blue · clockwise.

The buttons

Run, Step, and the rest

The control bar: Run, Step, Reset, New puzzle, Show me the answer, speed.
▶ Run
Plays your whole program, top block to bottom, always starting from the beginning.
Step
Plays one block at a time. Use it to find exactly where a program goes wrong.
Reset
Puts the rings back to the start of the puzzle. Your blocks stay.
New puzzle
Deals a fresh puzzle of the same kind.
Show me / Peek
Help when you are stuck. Both cost the star for finding it yourself.
Room 1 · The Lens Room · levels 1-1 to 1-6

Read the rings

Watch a ring turn and name it. Then guess where a bead will land before it moves.

Watch levels: which circle, which way?

The algorithm

  1. Press ▶ Show me and watch.
  2. Find the circle that moved. Say its colour first, then outer, middle or inner.
  3. Decide the way its beads slid: clockwise ↻ or counterclockwise ↺.
  4. Pick the answer with both parts right. Not sure? Press Replay.
Four answer choices. Inner gold clockwise is marked wrong.
Here Inner gold · clockwise was picked, and it is wrong.
The machine with the inner blue circle glowing and an arrow pointing clockwise.
After a miss, the circle that really turned glows and the arrow shows its way. It is the smaller blue circle, going clockwise: the answer is Inner blue · clockwise.

Predict levels: where does it land?

The algorithm

  1. Find the bead with the blinking white ring.
  2. Look at the arrow: that is the way its ring turns.
  3. Move along that same ring, the arrow's way, and count. On the 2×2 count 2 beads. On the 3×3 count 3 beads. Do not count the one you start on.
  4. Tap the bead you stop on. Stuck? Count it with me puts the numbers on the ring.
A 3 by 3 machine with the numbers 1, 2 and 3 drawn along a blue ring, starting next to the ringed bead.
A 3×3, so three places. The count starts on the bead after the ringed one and follows the arrow. The bead on 3 is where it lands.

Mistakes to watch for

  • Watching one bead instead of the whole circle.
  • Naming the colour and stopping. Every colour has more than one circle.
  • Moving the bead one place. A quarter turn is 2 places on the 2×2 and 3 on the 3×3.
Room 2 · The Rewind Room · levels 2-1 to 2-6

Undo: your first programs

The game shows the spins that scrambled the rings. Your program has to put them back.

The undo algorithm

  1. Start at the bottom of the list: the last spin made is the first one you undo.
  2. Build a block with the same ring, turning the other way.
  3. Snap it underneath your last block so they click together.
  4. Move up the list one spin and repeat until you reach the top.
  5. Press ▶ Run. You should have exactly as many blocks as the list has spins.

Think socks and shoes: socks go on first, but shoes come off first. Reverse the order, and flip every direction.

The scramble list: 1 inner blue clockwise, 2 outer blue clockwise, 3 inner gold clockwise.
What scrambled it, in order.
Three spin blocks: inner gold counterclockwise, outer blue counterclockwise, inner blue counterclockwise.
The undo program. We ran this exact program in the game and it cleared the level.
Your blockComes from list spinList saysSo you build
1st3 (the last)Inner gold · clockwiseInner gold · counterclockwise
2nd2Outer blue · clockwiseOuter blue · counterclockwise
3rd1 (the first)Inner blue · clockwiseInner blue · counterclockwise

Mistakes to watch for

  • Playing it again: same spins, same way. That doubles the mess.
  • Flipping the turns but keeping the order. That is only half of it.
  • Reversing the order but keeping the directions. The other half.
  • On the 3×3, forgetting the middle circles are rings too. They undo the same way.
Room 3 · The Pendulum Hall · levels 3-1 to 3-5

Repeat and patterns

A repeat block runs the blocks inside it again and again. Programmers call it a loop.

How many times until home?

The algorithm

  1. The chunk is already inside a repeat block. Do not change the spins.
  2. Press ▶ Run. The coach tells you how many beads ended up home.
  3. Not home? Make the number one bigger and Run again.
  4. Stop at the smallest number that brings every bead home.
A repeat 2 times block holding four spins: inner blue clockwise, inner gold clockwise, inner blue counterclockwise, inner gold counterclockwise.
The only thing you change is the number in repeat 2 times.

Good to know

  1. A repeated chunk always comes back home eventually. The number is something you can find, so do not guess.
  2. A different machine needs a different number. Test it every time.

Match the picture

The algorithm

  1. Look at the target. Your program starts from home (every colour together).
  2. Find the colour groups that moved, and the ring that moves the most of them into place.
  3. Add one spin block for it and press Step. Closer to the target? Keep it. Not closer? Flip its direction or try another ring.
  4. Repeat until it matches. Par is how many spins it takes, so aim for that many blocks.
The target panel: a small picture of the rings, with the words Your program starts from home and has to end looking exactly like this. Par is 2 spins.
Par 2 means two spin blocks make this picture.

Mistakes to watch for

  • Matching one colour at a time. Look for the ring that lines up most of the picture at once.
  • Using outside rings on the checkerboard (3-4). That pattern only needs the three middle circles, twice each.
  • Splitting directions on Six spot (3-5). There, every spin goes clockwise.
Room 4 · The Card Loom · levels 4-1 to 4-5

Chunks and fixing

Build a set of spins once, give it a name, and use it again. Programmers call that a function. Then you fix programs that almost work.

Name it once, use it twice

The algorithm

  1. Open the Chunks drawer and drag out the chunk block.
  2. Put the spins inside it, in order, from the Spins drawer.
  3. Open Chunks again. There is now a block with your chunk's name: that block calls it.
  4. Drag the call out as many times as you need, snap the calls together, and press ▶ Run.
The spins list for level 4-1: four spins.
These four spins happen twice.
A chunk block named my chunk holding four spins, and two my chunk blocks below it.
Build four blocks once, then call my chunk twice: two blocks doing the work of eight.

Set up, do the work, put it back (4-2)

  1. Set up: one spin that moves things into place.
  2. Work: your chunk.
  3. Put it back: the setup spin again, the other way.

Debugging: one block is wrong

The algorithm

  1. Work out what the program should be, using the undo algorithm from Room 2.
  2. Compare it with the blocks, top to bottom, one at a time.
  3. Or press Step one block at a time. The spin that makes things worse is your bad block.
  4. Fix only that block. Do not rebuild everything. In 4-3 one block points the wrong way. In 4-4 two blocks are in the wrong order.
Scramble list: 1 middle blue clockwise, 2 inner blue counterclockwise, 3 middle blue clockwise, 4 middle gold clockwise.
What scrambled it.
The broken program: middle gold counterclockwise, middle blue clockwise, inner blue clockwise, middle blue counterclockwise.
The program it came with. Block 2 undoes list spin 3, Middle blue · clockwise, so it should be counterclockwise. Block 2 is the bad one.

Mistakes to watch for

  • Copying the same blocks twice instead of making a chunk.
  • Forgetting to put the setup back.
  • Rebuilding everything when only one block is wrong.
  • Under par (4-5): taking the long way. A target made in four spins can be made in four spins.
Room 5 · The Great Clock · levels 5-1 to 5-5

Mastery: no list, no hints

The scramble is hidden. Read the machine itself and bring it home.

The algorithm

  1. Read first. Which colour groups are still together? The ring that split a group is a good place to start.
  2. Really stuck? Peek shows the last spin of the scramble, and that is the first one you undo (Room 2). It costs a star.
  3. Add one spin and Step it. More beads home? Keep it. Fewer? Flip it or change the ring.
  4. When it goes wrong, keep your good spins and change only the last one.
  5. On the 3×3 remember the middle circles. On the 4×4 count four rings in every colour, from the outside in.
The hidden scramble: spins 1 to 3 are question marks, spin 4 shows inner blue clockwise after one Peek.
One Peek shows spin 4, the last: Inner blue · clockwise. So your first block is Inner blue · counterclockwise.
A scrambled 2 by 2 machine.
The machine you read. Look for colours that are still in one group.

Mistakes to watch for

  • Spinning to see what happens. Read the rings first.
  • Starting over every time. Keep your good spins.
  • Mixing up the second and third circles on the 4×4.

5-5 The workshop is not scored. Scramble it, or type a real cube algorithm in letters, like R U R' U'.

The short version

Six rules for the whole machine

Name a spinColour, then outer / middle / inner, then clockwise or counterclockwise.
Count a turn2 places on the 2×2, 3 on the 3×3. Don't count where you start.
UndoStart from the last spin. Same ring, other way. Work up the list.
RepeatChange only the number. Find the smallest one that brings it home.
ChunkBuild it once, call it as many times as you need.
DebugStep one block at a time. The one that makes it worse is the bug.