Home › JWorld Blog

Why Harbor Haul's physics feels fair: the rules that keep it from being a coin flip

JWorld team ·

How a crate-stacking physics puzzle avoids feeling random. Fixed physics steps, a two-crate preview, barrel chocks, readable wind and swell, and a calm check before judging, with the real numbers.

Physics puzzles drift toward luck very easily. If you drop a crate in the same spot twice and it stands once and topples once, you stop feeling skilled and start feeling like you are flipping a coin. When the JWorld team built Harbor Haul, the question we kept returning to was simple: when the tower falls, does the player feel it was their own mistake?

This post walks through the rules and numbers from our design notes that keep Harbor Haul fair. If you play, it doubles as a rulebook. If you build games, treat it as a small design note.

1. The physics always runs at the same speed

If a slow phone could change the outcome of a drop, that would be unfair. So the physics engine ignores the display frame rate and steps at a fixed 1/60 second. If the screen falls behind, the game catches up with at most 5 steps per frame. Past that, it would rather look a little slow than change the result.

Visual effects follow the same rule. The brief freeze on a hard impact and the slow-motion moments only change how much real time feeds the simulation, never the steps themselves. A dramatic effect cannot change who wins.

SettingValue
Physics stepfixed 1/60 s
Max steps per frame5
Solver iterations (velocity / position)10 / 6
Same device, same inputssame result

The design notes also record that the trigonometry is made deterministic, so a replay in Node and in Chrome matches bit for bit. We do not promise that every device matches to the last decimal, though. What everyone shares in the Daily Contract is not the outcome but the sequence of crates.

2. One seed decides the crate order

The crate order comes from a random generator, but a seeded one. Every contract has its own seed, so a contract always starts the same way. The Daily Contract builds its seed from the date, so everyone on the same date sees the same crates and the same wind pattern.

A fully random order would sometimes hand you glass as the very first crate. So the draw has guard rails:

  • The first 2 crates of a contract come only from Small Crate, Container and Beam.
  • No type appears more than 2 times in a row.
  • At most 1 Glass Case in any 3 consecutive crates, and no more than 3 per contract.
  • At most 1 Steel Block in any 4.
  • Every 4 crates include at least one of Small Crate, Container or Sandbag, so there is always a stable piece.
  • Barrels and Buoys never appear in the first 4 crates, at most 1 in any 3, and at most 2 per contract. Nothing round rolls around when there is no base yet.

3. A two-crate preview makes planning possible

The "Next" box at the top left shows the next two crates, with dots for weight. The briefing before a contract shows the first four.

Hiding information adds tension but removes fairness. Harbor Haul goes the other way: we tell you what is coming and let you decide. If you know glass is two crates away, you can leave the current crate on a flat spot instead of burying it.

An icy-harbor contract. The Next box shows a container and a steel block, and the tower holds a cracked glass case.
An icy-harbor contract. The Next box shows a container and a steel block, and the tower holds a cracked glass case.

4. Rolling cargo stops itself with chocks

The least fair moment in a stacking game is a round crate rolling off the barge. Barrels and Buoys have a special rule for that.

  • Within about 0.3 seconds (18 steps) of first contact, the cargo locks itself. It can lock earlier once it is slow enough, but never before 0.15 seconds after contact.
  • At that moment the round body becomes a chamfered box, and two small wooden chock wedges pop out on either side.
  • The worst-case roll is about 0.29 m. So a barrel dropped at least 0.4 m inside the deck edge cannot roll off by itself.

The roll is short, visible and always ends with a flat top. If you lose one, you can see it was your placement near the edge. In Ports 3 and 4 an amber safe margin is drawn along the deck edge until the first barrel has locked once.

5. Wind and swell have to be readable

Wind only acts on a crate while it is in flight. It never pushes crates that are already standing, so a finished tower will not lean on its own. Lighter cargo feels it more (a Buoy about 3.3 times) and heavy steel less (about a third).

At strong settings the drift is around 0.3 m during a 0.5 second fall. An arrow and a number stay on screen the whole time, so you always know the wind.

A contract with wind blowing left at 0.4. A tower of containers and crates has reached 3.8 m, past the 3.5 m height goal.
A contract with wind blowing left at 0.4. A tower of containers and crates has reached 3.8 m, past the 3.5 m height goal.

The swell in Port 5 is a metronome. Its period is always 5 seconds and never speeds up as contracts progress. A dot on a bar near the top shows where you are in the cycle, and the rule is simple: drop when the dot is heading toward a green end. Learn it once and it works in every Port 5 contract.

We also cap the number of live hazards. Wind, ice and swell count, and so do hazard cargo groups such as glass, round cargo and wedges. No contract from Port 3 onward has more than 2 at once.

A contract with wind blowing right at 1.1 and a wide beam leaning across the crates just as the tower topples.
A contract with wind blowing right at 1.1 and a wide beam leaning across the crates just as the tower topples.

6. Judging waits until the tower is calm

If stars were counted the moment the last crate leaves the hook, a wobbling tower would be judged by luck. So the game waits until the whole tower has been calm for 1 continuous second. A crate counts as calm when its speed relative to the spot of the barge under it is below 0.04 m/s and its rotation below 0.08 rad/s. Measuring against the barge keeps this fair even in ports where the barge itself moves.

The wait is capped at 6 seconds, after which the tower is judged as it stands. Tower height is measured at that moment too. No timer ever fails a contract. Time only matters for the third star.

Summary

  • Physics runs at a fixed 1/60 second step, so a slow screen never changes the result.
  • Crate order comes from the contract seed (the date for the Daily Contract), and run and count limits block unlucky combinations.
  • Use the two-crate Next preview to decide where the current crate goes.
  • Barrels and Buoys lock with chocks after about 0.3 seconds. Drop them 0.4 m inside the edge to be safe.
  • Wind only affects crates in flight, and the Port 5 swell is a 5 second metronome.
  • Judging happens after the tower has been calm for 1 second.

Want to feel it yourself? Play Harbor Haul in your browser. Stacking is a lot more fun when the rules are on your side.

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

More posts

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

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.

devStitch Hooppuzzle game

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