Paste your export
Clash Max reads the state you already have, including active builders, active research, hero upgrades, builder count, storages, and the export timestamp.
Read the timeline, understand the tradeoffs, and know why the plan picked what it picked.
Clash Max plans forward from the export you pasted, not backward from a fantasy wish list. It starts with your live timers, uses the hours when you can realistically check in, filters out anything illegal, and compares full schedules so the top plan feels like something a real player could actually follow.
The About page should answer the questions players actually have after seeing the planner: what am I looking at, why is there a gap, why is Town Hall missing, and what makes this better than just upgrading the most expensive thing next.
Clash Max reads the state you already have, including active builders, active research, hero upgrades, builder count, storages, and the export timestamp.
Sleep window, check interval, wiggle room, hero policy, preset, and planning horizon all shape the result before the next upgrade is chosen.
You get builder lanes, a lab lane, stat cards, warnings, and blocker cards that explain what is ready now and what is still gated.
1
2
3
4
5
6
7
If the export says a builder is already upgrading Town Hall with time remaining, the planner seeds that work first and continues from there. It does the same for research, hero upgrades, and other active timers.
timer exists, lvl is treated as your current completed level and the
upgrade in progress is to the next level.Plan generation runs in the browser. There is no scheduler backend receiving your pasted village export. The app can save your settings, cached upgrade data, last export, and selected plan locally in browser storage so the next visit is faster and less repetitive.
Usually because the builder freed up while you were asleep, between check-ins, or inside your wiggle buffer. A blank overnight lane is often the correct answer, not a bug.
Offense First Rush is the best default for most active players. Fastest Max TH is for climbing Town Hall as fast as possible. Max Before TH is for players who want to clean up their current hall before moving on.
Either your preset is pulling offense ahead first, Town Hall is still blocked by requirements, or the current horizon is too short to care about the next hall step yet. The warning card near the top of the timeline tells you which one it is.
Because presets rank army-support buildings and offense differently. In Offense First Rush, army camps, barracks, lab, clan castle, and spell factories can beat a defense if both are legal at the same decision time. Defense upgrades are still scheduled too, but they sit in a lower tier and usually wait until the stronger army buckets are covered first.
The lab can stay open on purpose if a better research choice is about to unlock. For example, if a higher-priority troop needs Laboratory level 9 and that lab upgrade finishes in two days, Clash Max can wait instead of spending four days on a lower-priority detour first.
The planner does not assume you log in the instant a timer ends. It turns your sleep window, next realistic check-in time, and wiggle room into real scheduling rules before it chooses what comes next.
Home Village scheduling runs forward from the export timestamp. When a lane becomes free, the planner moves the decision to the next time a real player could reasonably act, then chooses from the upgrades that are still legal there.
Wiggle room is a small delay added to each decision point so the plan behaves like a real person who may take a few minutes to open the game and start the next upgrade.
Without that buffer, the app might choose a tiny filler upgrade at 7:00 AM that ends at 7:20 AM and leaves you with another awkward mini-gap. With wiggle room, Clash Max can skip the filler and choose a longer task that fits your real routine better.
The builder freed up while you were asleep, so the next action waits for wake time.
The next recommended start time lines up with the next realistic check window, not a stopwatch-perfect one.
A small action buffer keeps the plan from assuming you can start every upgrade immediately.
Clash Max is not just asking "what can I afford?" It is asking which legal choice best matches your preset, your timing, and your current goal inside the selected horizon.
In this example, Offense First Rush is active, all three upgrades are legal, and the builder becomes free at the same decision time.
Army-support building
Chosen firstDefense bucket
WaitsStorage bucket
WaitsIn player terms, Attack Infra means army-support buildings like Army Camp, Barracks, Laboratory, Clan Castle, Spell Factory, Dark Barracks, Workshop, Blacksmith, Hero Hall, and Pet House. Those buildings can move ahead of plain defense depending on the preset.
Best default for active players who want a stronger army first and are comfortable rushing onward after that.
Use this when reaching the next Town Hall path sooner matters more than polishing offense before the hall step.
Use this when you want to clean up the current hall first and only move once the rest of the base is in much better shape.
Read these as priority order, not as a one-time queue. TH Blockers means the missing placements, levels, and merges that must be cleared before the next Town Hall step becomes legal.
This is one of the most useful parts of the app. If a plan does not show the upgrade you expected, the blocker card and warning area are meant to explain the missing requirement directly.
If an upgrade costs more than your current storage limit can hold, Clash Max flags it and can pull the matching storage upgrade forward when that unblocks something more important.
Hero upgrades consume builders. If you set Clash Max to keep one or more heroes available, hero upgrades can wait even when they are legal and affordable.
The lab can stay open on purpose if a stronger research path is about to unlock. That is different from the lab being forgotten.
Town Hall progression can require missing placements or merged defenses. Clash Max checks those before it treats the hall step as legal.
A plan can look good in the next hour and still be worse over the next few days. That is why the app can generate multiple full-timeline variants and rank them instead of pretending the first answer is the only answer.
Looks fine early, but carries a long Tuesday-night idle gap and reaches the stronger offense steps a little later.
Uses the same total time better, lands closer to your check-ins, and covers more of the priority work that matters inside the selected horizon.
These bars now match the actual uptime metric. Both plans can still look nearly full because builder efficiency is measured across the whole horizon, while a single badly placed overnight gap can still make one plan feel worse in practice.
Clash Max does not treat Builder Base as "Home Village with different names." It switches to Builder Hall rules, Builder Base resources, Clock Tower timing, and the B.O.B. milestone model when that mode is active.
Clash Max is intentionally strict about where its planning data comes from and what happens when that data is missing. The app should not invent upgrade costs, durations, or requirements when the canonical data is not available.
Everything above is the player-facing explanation. This section is the implementation view: the actual forward simulation, scoring, search, and ranking rules the current build uses.
Home Village scheduling is a forward event simulation, not a backward solver. Each builder lane starts
with a busyUntil timestamp seeded from the export. When the next builder frees up, the
scheduler advances to the next real action time, filters the legal choices at that moment, assigns one,
and then enqueues the follow-up level for that same building if another step exists.
Each building candidate starts with a small within-bucket priority based on how far below its current Town Hall cap it is, with extra nudges for early levels and army or hero categories. The larger signal is the rush bucket bonus.
composite = base priority + rush bucket bonus + timing heuristic + special
unlock bonuses
Beam search still needs a local timing signal when it scores individual candidates. Clash Max uses a utilization-first heuristic that prefers upgrades which keep builders working continuously, then blends in sleep alignment as a smaller tiebreak.
utilization = duration / (duration + idle until next decision)
-1..1.The picker does more than ask whether an upgrade is legal right now. It also carries forward Town Hall requirements, merged-building source reservations, storage-capacity timelines, Hero Hall and Pet House gates, and lab-production requirements.
The lab uses four tiers, either from the preset or from manual overrides. The scheduler first narrows to the best available tier, then uses within-tier priority and timing to decide which research starts next.
within a tier: priority * 1000 + timing * 5
Every run starts with a deterministic baseline plan, then beam search keeps several promising early branches alive instead of collapsing immediately onto one greedy route.
Refine Selected Plan does not blindly rewrite the whole schedule. It targets a selected plan, destroys a small set of fixed decisions, and reruns only around those decisions to search for tighter timing.
no_candidates dead ends, and picks
from the worst idle pool first.Ranking is not just builder efficiency. The current build first measures whether a plan covers more of the important buckets inside the selected horizon, then looks at how early those buckets begin.
bucket contribution = bucket weight * hours until first start
6 / 4 / 2 / 1 for tiers
1 / 2 / 3 / 4.Builder Base uses a separate engine. In B.O.B. rush mode, the candidate pool is intentionally narrowed to milestone work, and the schedule can be rerun up to four passes so Clock Tower boost windows settle into a stable pattern.
The export parser expands counted buildings into individual instances, turns active timers into seeded in-progress tasks, and keeps the game export semantics intact.
timer exists, lvl is the current completed level and the active step
is lvl + 1.