Daily challenges without a server: one puzzle for everyone, from the clock
2026-11-29 · Sagar Studio
Several of our games have a daily challenge: a new room to escape, a new farm to harvest or five new goals to hit. Everyone who plays on a given day gets the same one. You might expect a server to hand it out, but nothing is sent anywhere. The game works the day out from the clock and builds the challenge on your device.
The date is the seed
A shared helper in our game kit turns the current time into a day number: the count of whole days since 1 January 1970 in UTC. Two phones on opposite sides of the world get the same number at the same moment. That number seeds a small, well-known random number generator, so the stream of random choices is the same everywhere. If every device makes the same choices in the same order, every device builds the same puzzle.
Table Tennis Darbar uses the calendar date written as one number, such as 20261129, and derives five daily goals from it. A seeded shuffle of ten goal types picks five, such as winning a point with a backspin serve, a smash, a shot into a far corner or a rally of seven strokes or more. The seed also picks the opponent for each goal. The goals get harder as you go: the first two are against easy opponents, the next two against medium, and the last against hard. If you miss a goal you get one more try, and the retry uses a different but still shared seed, so friends comparing notes see the same matches.
Generating a whole room
Haveli Escape goes further and generates an entire level. The daily generator picks two rooms, three or four kinds of puzzle and a chain of six or seven locks, where each lock's key or reward opens the next one. It adds red herrings, objects that look useful but are not, and a door to the second room that opens with a key you have just earned.
A random room can come out wrong, so the daily is generated by a loop. Each candidate is compiled into a real level and handed to the same solver we use for the 20 hand-built levels. It is accepted only if the solver can finish it, it needs at least 11 essential steps and it contains at least three puzzles. If the candidate fails, the next seed is tried, up to 40 times. The game page says a new room every day, proven solvable, and that is literal: the proof happens on your device before you see the room.
Our tests check this ahead of time for 150 consecutive days. Generating each day twice must give identical results, every day must be solvable, at least 140 of the 150 rooms must be different from each other, and the days together must use at least ten different kinds of puzzle.
Making a farm repeatable
Khet Kahani has a three-minute Daily Harvest on a seeded farm, the same for everyone that day. Repeatability here is subtle, because a farm game is full of chance: which orders customers place, and when. If orders were drawn one after another from a single random stream, the choices you make would change which numbers come up next, and two players would end up on different farms. Instead, each order is computed from its own hash of the farm's seed and the order's number. Order 9 is the same order whatever you did before it. A test checks exactly that.
The star rating is measured against the same farm. When you finish, the game quickly plays the day's farm with its medium and hard computer farmers and compares your score with theirs. Beat the medium bot for one star, the hard bot for two, and the hard bot by 20 percent for three. The yardstick changes every day because the farm does.
Streaks
A streak counts consecutive days played. The game stores the day number of your last daily and your current streak. When you start a daily, if the last day played was yesterday the streak goes up by one; if it was any earlier day the streak starts again at one; if it is already today, nothing changes. The shared helper shows a streak of zero once a day has been missed. In Khet Kahani a day only counts if you earn at least one star.
These values, along with today's best score, live in the browser's local storage on your device. Nobody has an account, so there is nothing to log in to, and there is no database to run.
What it costs
The approach is cheap and private, but it has limits, and we would rather you know them. Streaks and best scores stay in one browser: they do not follow you to another phone, and clearing your browser data clears them. There is no global leaderboard for a daily, because scores never leave your device. The day is the UTC day, so it turns over at the same instant for everyone, which is not midnight where most people live. And the clock is the device's clock, so someone who sets it forward can see tomorrow's puzzle early or stretch a streak; since these are single-player games with nothing at stake beyond in-game coins, we accept that.