Home › JWorld Blog

How Stitch Hoop makes its pictures: seven picture checks and boards that always solve

JWorld team ·

Every Stitch Hoop picture and board is tested before you see it. The seven rules that reject a picture, how needles are built, how a solver proves a board can be won, and the size of Today's picture.

Stitch Hoop is a puzzle where you tap needles from four trays and stitch a picture onto the cloth. If the picture is ugly, or the board cannot be won, the game falls apart. So the JWorld team put automatic checks on both the pictures and the boards. This post walks through what those checks actually look at, using the thresholds written in the game's code and design notes.

Pictures come from three places

Stitch Hoop does not draw every picture the same way.

SourceUsed forStrengthWeakness
Hand-drawn motifsSmall pictures in the early worldsEvery cell is chosen by a person, so they read clearlyA fixed number of them
Images reduced to a grid size and a few colorsLarger picturesLook good at 12x12 and aboveTurn to mush below 10x10
Code-generated picturesToday's picture, Free StitchUnlimited supplyMany results are plain

Most generated pictures are bland, and using them as they come would make the game dull. That is why every picture, from every source, has to pass the same quality check.

Level 1-4: a 6x6 tulip picture, four needle trays around the hoop and five empty pincushion slots.
Level 1-4: a 6x6 tulip picture, four needle trays around the hoop and five empty pincushion slots.

Seven ways a picture gets rejected

The quality check lives in quality.ts. It runs seven tests in order and throws the picture away at the first one it fails.

#NameRejected when
1FillFewer than 33% of the cells are colored (too empty)
2ColorsIt uses fewer than 3 colors, or more than 2 fewer than the world asks for
3Dust colorAny color covers under 3% of the colored cells, or fewer than 3 cells
4Big regionThe largest connected patch of one color is under 12% of the colored cells
5NoiseThere are more than 0.16 color patches per colored cell
6SpecksSingle-cell patches make up more than 6% of the colored cells
7Small silhouetteThe drawing covers less than 70% of the width or of the height

Tests 4 and 5 are the interesting pair. A picture "feels like a picture" mostly because the same color sits together in large patches. Scatter colors at random and the patches shatter into tiny pieces, which these two tests catch right away.

Hand-drawn motifs and reduced images get one more check, done by eye: look at a contact sheet of small thumbnails and ask "can you name it in three seconds?" If not, it goes.

No picture shows up twice

There is also a duplicate check.

  • Two pictures are overlaid and the share of differing cells is measured. The comparison uses the closest of the 8 mirrors and rotations of the second picture.
  • If fewer than 30% of the cells differ, they count as the same picture and one is dropped.
  • Pictures of different sizes are never duplicates.
  • At most 3 boards of the same subject (for example, flowers) can sit in one world. Mirrors, rotations and recolors all count as the same subject.

This cuts down on the "wait, that is just the earlier picture flipped" feeling.

Needles are built by stitching backwards

Once a picture is fixed, the needles have to be filled in. Hand out stitches at random and you will often create boards that cannot be won. So the generator plays a hidden game of Stitch Hoop and records the needles as it goes.

  1. Pick a side that still has stitchable cells.
  2. Pick a color that side can currently reach, and measure how many stitches that needle could place in one pass.
  3. Give the needle that many stitches (sometimes fewer, sometimes a few extra). Extra stitches end up parked on the pincushion.
  4. Put the needle into that side's tray in the order it was used.
  5. Repeat until the cloth is complete.

Built this way, the stitches on a color's needles add up to exactly the number of cells of that color. No needle ever runs short, and none is left over.

Then the generator deliberately shuffles the tray order. It reverses runs of 3 to 7 needles, or moves needles within one tray, and keeps a change only if the board is still winnable. That shuffling is the main difficulty dial.

A solver proves the board can be won

When the needles are set, a solver tries to finish the board.

  • It searches for a win using 5 pincushion slots. The search limit is 60,000 nodes; a board that runs out of budget is rejected.
  • It works out the fewest pincushion slots a winning plan needs and stores that number with the board.
  • It replays the winning plan twice from the same start. Both runs must end in a win with the same state hash. A board that behaves differently on a second run is rejected.
  • The Hint button shows the first move of this plan.

From World 3 on there is also a choice check. On at least 45% of the positions along the winning plan, you must have two or more needles that could stitch something. If there is always exactly one sensible needle, it is not a puzzle, just an order to follow.

Bots that play like people test the board too. If a human-style bot wins on its first try less than 35% of the time, the board is treated as nearly impossible and dropped. From World 3 on, a board that both a random-tapping bot and a simple bot win outright is dropped as too easy.

Today's picture is fixed by the date

Today's picture has to be the same board for everyone, with no server involved. So the boards for each date are baked into the game ahead of time rather than computed when you open it. Nothing is calculated at run time, so no two devices can compute different results.

The Today's picture screen: a Saturday 14x14 picture and the November calendar.
The Today's picture screen: a Saturday 14x14 picture and the November calendar.

The size depends on the weekday. The screen shows it too, for example "Sat 14x14".

DayMonTueWedThuFriSatSun
Size8x810x1012x1212x1214x1414x1416x16

Pictures grow toward the weekend: short sessions on weekdays, a slower one on Sunday.

Summary

  • Every picture must pass seven quality tests. The core question is "is there a big patch of one color?"
  • Pictures that differ in fewer than 30% of cells, counting mirrors and rotations, are treated as duplicates, and a world holds at most 3 boards of one subject.
  • Needles are made by playing a hidden game, so each color's stitches add up to its cell count.
  • A solver confirms the board can be won with 5 pincushion slots and that the winning plan replays identically twice.
  • From World 3, boards must offer real choices, so levels where the needle to tap is obvious are filtered out.
  • Today's picture is pre-built for each date, so everybody gets the same board.

You can try Stitch Hoop in your browser. Its page on our site is /en/apps/sutteul/.

Written by the JWorld team from our game design documents and measured play data, with AI tools helping with the writing.

More posts

What the tavern earns while you are away: how Dokkaebi Tavern pays your time off

How Dokkaebi Tavern turns the time the app was closed into coins. The 4-hour cap, what happens if the clock goes backwards, why helpers matter, and every way to stretch the cap, with the in-game names.

devDokkaebi Tavernidle games

"Hanseong Case Files Guide: Filling the Verdict, the Hint Ladder and the Daily Grid"

How picking up words and filling blanks works, what three tries and the retrial wait mean, how the three hints are priced, what earns the top grade, and how to solve the daily logic grid.

guideHanseong Case Filesdeduction

"Same shot, same result" in Putt Workshop: integer shots, a 240 Hz tick, physics with no dice

How Putt Workshop makes puzzles solvable by thinking instead of luck. Two-integer shots, a fixed time step, friction and cup rules, home-made sin/cos, hash checks, and how a solver sets par.

devPutt Workshopphysics

How Block Daily deals its blocks: 15 drawings, one seed, and a save that replays the dice

A look inside the 8×8 puzzle's core logic: how 37 blocks come from 15 text drawings, how weights stay fair, when a deal is redone, and how saves resume with the same upcoming blocks.

devBlock Dailypuzzle