Modulo-14 and the Shortcut
SubmarineDash says in its tutorial that levels are 'endlessly varied.' After playing to level 70, we noticed something: levels 14, 28, 42, 56 and 70 all felt structurally different from the ones around them. They had treasure chests placed in a single horizontal row, with zero hazards between them. A single dive would collect all of them without any detours. Players who recognise this pattern can skip the usual two or three rope extensions those levels normally require.
We reverse-engineered the treasure-placement algorithm from the level generator source code. It is: if level_number % 14 === 0, generate all chests at row (level_number % 10) with hazards disabled. Otherwise, generate chests at random rows with hazards enabled. The modulo-14 threshold was chosen because the level generator's first draft had a bug that caused chests to overlap every fourteenth level, and rather than fix the bug the programmer kept it and made those levels a design feature.
This is a classic browser-game shortcut: procedural generators accumulate bugs that become design choices, and players who notice the pattern unlock content the generator was not supposed to produce.



