Skip to content

Play in the browser

Restfall has no required UI — the API is the game. But there is an optional web client: a glossy retro browser front-end modelled after the classic 2009 Evony “Age I” look — parchment panels, gold ornamental frames, a stone-walled stage, and illustrated icon menus. It talks to the same API and MCP server. Nothing is special-cased for it. The towns you found, the marches you launch, and the buildings you raise in the browser are the same objects an agent sees through get_state.

Use it to learn the game by hand, watch your realm live, or just play for the fun of it — then hand the keys to an agent whenever you like.

60-second start

  1. Visit the site and you land on the login screen — a painted sunset vista of the kingdom behind a stone/parchment panel and the gold RESTFALL wordmark.
  2. Register an account (or log in) — same accounts as the REST API. Your password manager can fill in both forms, offer a strong password when you register, and save it; a new password needs at least 8 characters. Both forms carry a quick human check. A new account verifies its email before it can sign in: open the link we email you, which brings you back here to enter your password, and you are signed in (see Verifying your email below).
  3. Pick a realm — each realm is a self-contained world running in seasons. A player is created for you on first entry.
  4. Found a town — give it a name to start your empire.
  5. Settle on the map — drop your town onto a tile in settle mode.
  6. Build — raise a Farm, Lumber Mill, Quarry or Mine and your economy starts compounding in real time.

That is the whole core loop. Everything after is growth: train units, recruit heroes, scout neighbours, research upgrades, trade, ally, and wage war.

Verifying your email

Creating an account does not sign you in. The form gives way to Check Your Inbox, naming the address the link went to. No mail? Look in your spam folder, or press Send a new link there. How long a link works, what replaces it and how often you can ask for one are on Verify your email.

The link opens the Verify Your Email page. It asks for the password you registered with and does nothing until you send it, so a mail program that opens links to scan them verifies nothing. Then:

  • The right password verifies the address and signs you in, exactly as signing in does: the realm picker shows next. If another account was signed in on that browser, the page says so, and verifying signs it out first.
  • A wrong password reads as it does on the sign-in form. The link still works: try again.
  • A link that no longer works (expired, used or replaced) says so and asks for your email address to send a new link. If you have verified already, sign in instead.

The code sits in the link’s fragment (after #), which your browser never sends to a server. The page takes it out of the address bar the moment it opens, so Back and Forward, a bookmark of the page or a screenshot of it never carry the code, and none of the page’s own requests names it. It keeps the code only while the page is open: reload it and the code is gone, so open the link from the email again. Your browser’s history list may still show the link as you opened it; it works once, and only with your password.

Signing in before you verify is refused with “Email address not verified. Open the link we emailed you, or ask for a new one.”, and a Send a new link button for the address you typed. Registering an address that already has an account is refused too, with the same button, in case that account is yours and you never got its link. Either way the answer to the button reads the same whoever owns the address, so it never tells anyone who is registered.

If you ask too often, the button greys out and a message by it says how long to wait (“Too many attempts. Try again in 2 minutes.”). When the wait is over, the message goes and the button works again by itself, without asking the server. Send a new link stays greyed out for the whole wait even if it disappears and comes back, say because you sign in again. Signing in, registering and verifying work the same way when the server asks you to wait.

The human check

The sign-in, registration and verification forms, and every Send a new link button, show a small Cloudflare Turnstile box by their button. It checks that a person, not a script, is sending the form. Usually it passes by itself within a second or two, with nothing to click; now and then it asks you to tick a box. The button stays greyed out until the check has passed, and the check runs again after every attempt, because each pass works once. A screen reader hears “Checking that you are human…” and then “Human check complete.”.

If the check does not pass, it says so and runs again by itself a few seconds later. If it cannot load at all (no connection, or an extension that blocks challenges.cloudflare.com), the form says “The human check could not load. Check your connection, then try again.” with a Try again button. The game loads Cloudflare’s check only when one of these forms is on screen, never while you play. What the server answers is on Log in.

Layout (desktop)

The layout is a full-width Evony-style shell: the game view is pinned and always visible, filling everything between the top strip and a slim bottom strip. Nothing ever replaces it — every other screen opens as a window on top.

┌──────────────────────────────────────────────────┬──────────────────┐
│ ▓ black ticker strip [TOWN] [CITY] [MAP] │ RESTFALL logo │
├──────────────────────────────────────────────────┤ clock · server │
│ │ │
│ iso Town / iso City / world Map │ lord portrait │
│ (pinned — windows open over it) │ prestige/honor/ │
│ │ medals/alliance │
│ [active-job pills: countdown + Speedup] │ │
├────────────────┬─────────────────────────────────┤ resource panel │
│ [icon grid ×2] │ System | World | Alliance chat │ food/wood/… │
│ │ │ pop · tax [set] │
└────────────────┴─────────────────────────────────┴──────────────────┘
  • The stage is pinned — TOWN, CITY and MAP render edge-to-edge in the same slot, scaled to fill its width (no letterbox bands). Running jobs (construction, research, training, incoming attacks) float over the stage’s bottom-left corner as translucent pills with a live countdown; construction pills also carry a Speedup button (troop training cannot be sped up). An incoming-attack pill shows only what the target town’s Watchtower reveals (beacon warning tiers): its countdown reads “arrival unknown” until tower level 3, and the full queue panel (Town tab) lists each revealed piece — purpose, attacker, origin, troop types, numbers, hero, research — with the rest greyed out and labelled with the Watchtower level that would reveal it. A town with no completed Watchtower sees no pill at all.
  • Right sidebar — always visible. Contains the gold RESTFALL wordmark
    • server clock, your lord portrait on a parchment scroll — your title reads beneath your name (Unranked until your first promotion), and is itself a shortcut into the Titles screen — with stat rows (prestige, honor, medals, alliance), a tabbed resource panel showing current amounts + per-hour production + a + button to the market, and the town selector + coordinates chip — a town is always selected (your first one by default) — a Colony badge appears next to a colony’s name (and beside its entry in the multi-town dropdown) since a city, the common case, needs no label. The Town tab holds the town management actions: Rename, Collect tax, Found new town, and Abandon; it opens with a note when the selected town is a colony, since a colony builds and dies differently from a city (see Colonies) — below those, a Valleys panel lists the town’s held valleys against its Town Hall cap (N / cap), each with its type, level, bonus, and its own Abandon button.
  • Top strip — a black bar with a scrolling announcement/system ticker on the left and the TOWN · CITY · MAP view switcher on the right.
  • Bottom-left — the Command Menu icon grid (Alliance, Market, Quests, Reports, Mail, Rankings, Settings, Heroes, Titles, Wheel, Items). These are the account-global screens; per-town screens (Research, Hospital) are reached from the city view, and alliance-scoped Diplomacy is a tab inside Alliance. Each button shows a red badge when there is something actionable.
  • Bottom-center — the Chat / Event Log panel with System (read-only events), World (global chat), and Alliance tabs. The open tab refreshes every 30 seconds; another tab catches up when you open it, if its messages are more than 30 seconds old, and shows placeholder bars until the server first answers. Once a season has ended the server no longer serves chat, so each tab reads Chat is unavailable. and stops asking.

On ≤ 720 px the layout collapses to the mobile shell: top resource bar, bottom navigation tabs, and bottom sheets for screens.

Windows over the stage

Every non-view screen (Market, Reports, Alliance, …) opens as a window over the pinned stage, wearing the same ornate chrome as every other dialog in the game: a parchment body inside a gold double-border frame with filigree corner ornaments, a wooden title banner, and a ✕ close button. The world stays visible (and live) behind it; the sidebar and bottom strip stay interactive. One window at a time — opening another replaces it. Windows close on Esc, and each has a stable URL (/market, /reports, …) so deep links and the back button work. Mobile uses full-screen sheets.

Tile, building and build-menu popups are centered sheets in that same ornate frame, over a darkened backdrop; a heavier gilded variant (baroque gold frame + wood body) appears for special dialogs. A built building’s window leads with a large portrait of its art, and in the build menu clicking a row expands it in place to show the building’s art large — click it again, or another row, to collapse it (the Build button acts on its own either way).

From the keyboard, opening a window or a popup moves focus into it, so Tab starts at its first control, and closing it (✕ or Esc) puts focus back on whatever opened it: the button, the building, or the map. If that is gone, as when you build on an empty plot, focus goes to what took its place (the new building), or else to the stage. In a popup, Tab and Shift+Tab go round its own controls only until you close it, and Esc closes just the popup, not a window behind it. While a window is open, the town, city or map it covers is out of reach of Tab, as it is of the mouse: Tab and Shift+Tab move between the window and the top strip, sidebar and bottom strip around it.

A tour of the screens

  • Town — the TOWN tab is the main view: an open grid of forty field plots where farms, lumber mills, quarries and mines are built, on painted countryside. Your walled city sits in the corner as scenery — it is not clickable from here. Tap any plot to build, upgrade, or inspect. Free plots are marked out on the grass; once a building goes up, its plot marking gives way to the building’s own ground, so only the land you can still build on is outlined. A building covers its whole plot, and you tap it on that plot: the parts of it that lean over the plots behind never steal their taps.

  • City — the CITY tab is a separate place: the walled compound itself, a painted scene of curtain walls, corner towers and a gatehouse enclosing thirty-six plots in four 3×3 blocks split by a road cross, holding everything that is not a resource producer. The Wall is not one of those plots. It rings the whole city rather than standing on a tile, so building it costs you no plot: construct it from any city plot’s build menu and the plot stays free for something else. Its level is shown on a gold badge at the gatehouse, and clicking that badge opens the wall’s window to upgrade it. The painted walls do not change with the level — a level-1 wall and a level-10 wall look the same for now. A colony’s build menu still lists every building type — including the Wall and the Academy, which a colony can never build — but a type outside the colony’s whitelist shows locked with a short reason instead of vanishing outright, the same way a type with an unmet prerequisite does. See Colonies for the full whitelist rule.

  • Map — a pan-and-zoom canvas of the world, painted the way the classic browser 4X world maps were: one continuous meadow with no visible tile grid, and terrain that reads from what grows on it — woodland as clumps of trees, highlands as craggy rock ridges on bare stony ground, farmland as ploughed patches and standing wheat, rivers and lakes as open water with a shoreline. Boundaries between them are soft and organic rather than square. Towns are marked by stone keeps and NPC barbarians by palisade camps — a colony draws the same keep at a smaller scale with a teal accent ring, so it reads as a lesser settlement at a glance even before its label is legible. Beyond the world’s edge is open ocean. The toolbar shows a compass rose, your current coordinates, an X,Y Go field — type any coordinate pair (e.g. 10, 20) and press Go to jump there instantly — and a gold My town button that recenters the map on your town (on mobile the same control is a floating pill over the canvas). The map always fits the screen; it never needs a page scroll.

    Moving around the map. Drag to pan, and zoom with the mouse wheel or, on a touch screen, by pinching with two fingers: the spot between your fingers stays under them, and sliding both fingers pans while you zoom. Lifting one finger carries on as a one-finger drag. A tap or click opens the tile under it; a drag, however slow, never does. A finger may roll a few pixels as it taps and the tap still counts; a mouse has to hold still. Only the main mouse button drags or opens tiles: a right or middle click does nothing on the map. The map works from the keyboard too. Tab to it (a gold outline shows it has focus) and a dashed white frame marks the tile at the centre of the view. The frame hides while you use the mouse or a finger, and the next map key (one of those below) brings it back.

    KeyWhat it does
    Arrow keysMove the map one tile; the frame moves onto the next tile
    Shift + arrowMove it eight tiles
    + / - (or = / _)Zoom in / out about the centre
    Enter or SpaceOpen the tile in the frame, as a click would (holding the key opens it once)

    The toolbar’s coordinates follow the frame as you move it, and a screen reader reads them out once the frame stops moving, rather than every tile of a held arrow key. Ctrl, Cmd or Alt with any of these keys is left to the browser (Ctrl and plus still zooms the page), and Tab moves on to the next control as usual. A tile opened with Enter has focus in its card; Esc closes it and puts you back on the map with the frame showing.

    The map only draws while something on it changes: a drag, a zoom, a marching army, new map data. Left alone, it draws nothing at all, which saves battery on a laptop or phone. A marching army is redrawn each time it has moved a pixel, and an attack heading for one of your towns pulses until it lands.

    Click a town to see owner info, alliance, prestige, and diplomatic status; the Attack button is disabled while the target is under protection (Truce). The Scout button opens a unit picker restricted to your realm’s scout unit type — it is the only unit that can be sent scouting, so nothing else is offered. Sending too few scouts against a well-garrisoned target risks the whole party being intercepted; see Scouting. Camps are labelled with their level, so you can judge at a glance whether one is a farm or a fight. Clicking a camp opens the same Attack flow with one extra choice — what to do if the garrison falls: plunder it, capture it as your own town, or raze it. Capture’s hint reminds you it requires the target’s loyalty already ground to 0; any army can attempt it, no particular unit is needed. See Barbarian settlements for what each outcome costs. Valleys draw as a small ringed disk with a type glyph and a level badge — gold ring for one you hold, red for one held by another lord, grey for an unowned one. Clicking a valley opens its card: type, level, current bonus, who holds it (or the time to its next daily level-up while unowned), and any garrison a scout has reported. A valley you hold offers Reinforce (send support to garrison it) and Abandon; any other offers Scout and Attack, whose intent picker is narrowed to Plunder and Capture — Capture greys out with the reason when your origin city’s Town Hall valley cap has no room or the valley is already yours. See Valleys for the full mechanic. Clicking an empty tile once you already hold a town offers Found a town here: name it, choose the settlement kind — City or Colony, each shown with its own live count against its own cap (cities: 2/3, colonies: 1/3), see the founding cost for that kind against your town’s current resources and the number of Workers the party must carry, pick the force to send from a unit picker scoped to your garrison (the Workers are required; everything else is an optional escort), and hit Send expedition. Whichever kind is already at its cap is disabled without disabling the other, since the two caps never touch each other; the Colony choice is hidden entirely on a realm with no colony configuration. See Found a Town and Colonies for the full rules.

  • Training units — click a military building (e.g. the Barracks) on the CITY view: its sheet carries Garrison / Train / Queue tabs scoped to that building. Pick a unit, set a count, and train right there. Units the building or the town has not unlocked yet are still listed, greyed out and unselectable, with the reason beside the name — needs Barracks Lv.4 or needs Archery Lv.6 — so you can see the whole ladder you are climbing rather than wondering where a unit went. See Training gates.

  • Heroes — your heroes/commanders roster with portrait, level, star rating (★/☆), and Politics/Attack/Intelligence stats. Recruit new heroes at the Inn, level them up (each level grants 1 allocatable stat point), spend points on stats, star them up, and assign one to lead an attack. Appoint an idle hero Mayor of the town they garrison, or dismiss a sitting mayor — dismissal works in any hero status, so a marching, wounded, or captured mayor can still be unseated. While the mayor is not idle at home their card’s Mayor tag reads (suspended): the appointment persists but the mayor bonuses pause until they are back.

  • Market — post and accept resource trades with other players (requires a Market building).

  • Alliance — found an alliance or apply to one (the Apply button; a pending application shows above the list with a Withdraw button), manage the roster, coordinate on the alliance board, and view alliance rankings. Officers and above get an Applications tab to accept or reject the pending applications.

  • Diplomacy — your alliance’s diplomatic relations (WAR / ALLY / NAP / Neutral) with other alliances; propose, accept, decline, or break relations (alliance leader only). Reached as the Diplomacy tab inside the Alliance screen — it’s alliance-scoped, not a global menu icon.

  • Research — spend resources on technologies at the selected town’s Academy, including combat bonuses that apply automatically in battle for that town. Opened from the city view, not the global menu — research is scoped to whichever town you’re looking at, not to your account.

  • Quests — claim quest rewards and track achievements that feed your prestige.

  • Hospital — view your wounded units and their healing queue; heal wounded units and recover wounded heroes (requires a Hospital building). Opened from the city view, not the global menu — the wounded and the healing queue belong to whichever town you’re looking at.

  • Titles — the realm’s title and rank ladders: your current title and rank, a panel of your named medals, every rung with its gold, medal and rank requirements and what it unlocks, the gates on the next rung with met/unmet state, and Promote buttons when you qualify. Both promotions run from the town you have selected — it pays the gold, and its Town Hall is the rank gate.

  • Wheel — the fortune wheel: your spin balance, the wheel itself, and the full prize table with every weight and the chance it works out to. Spinning animates the wheel onto the prize the server returned — the outcome is decided server-side before anything moves, so the animation can never disagree with the result. With prefers-reduced-motion set, it settles instantly instead of spinning. Spins are earned by playing and can never be bought.

  • Items — your inventory of consumable resource chests, medal bundles, speedups, and spin tokens, plus a header showing your current medal and spin totals. It’s a global screen like Wheel and Titles, not scoped to a town. A resource-chest card lets you pick which town receives it; a speedup card lets you pick a queued order to shave time off — a building upgrade, a research level or a wall-fortification order, across any of your towns (never a troop-training order). A medal bundle or spin token card opens straight into your medal or spin balance with no picker.

  • Reports — battle, scout, and trade outcomes. The Scouts tab covers all four scouting event types, including a scouted-party’s own losses to a target’s screen and an intercepted-mission entry when the screen held outright — see Scouting. Battle reports show a two-column parchment ledger: committed forces, killed / wounded / captured breakdown, resources looted, honor change, medals earned (realms that mint them), and the commander portrait if a hero led the battle. A battle that razed a colony leads the report with that fact, ahead of everything else — the colony is gone for good and its tile is free again. An ordinary battle, or one that did not clear a colony’s garrison, shows nothing extra. Valley captures, losses, abandons and denied captures appear on the All tab with a plain-English line (a denied capture names why it fell back to a plunder).

  • Messages — player-to-player mail with inbox / sent tabs.

  • Rankings — realm leaderboards by prestige for both players and alliances.

  • Settings — account info, realm info, active sessions, and a sound effects toggle (default off; drop MP3s into src/lib/assets/sfx/ to enable audio). Sign out ends both of your sessions on the server (the realm and the account one), even if one has already expired. Deleting a character returns you to the realm picker and keeps you signed in to your account. Leaving the realm, signing out and deleting a character all clear what the game had loaded for that realm: the next realm you enter starts at the loading screen and opens on the town view, never showing the last one’s towns or the window you left from. If the server stops accepting your realm sign-in (it expired, or was ended from another device), you go back to the realm picker, still signed in to your account, and entering the realm again returns you to the screen you were on. If it stops accepting your account sign-in, you are signed out.

  • Tax — set your town’s tax rate via a slider running the full 0–100% (no title ceiling); the panel shows current population, max population, and the resulting loyalty and grievance. Opened from the tax % indicator in the resource panel.

Population, loyalty & tax

Every town has a population that fills toward max_population × loyalty ÷ 100, where max_population comes from your Cottages and the Town Hall level that gates how high they can go (see Cottage, Town Hall, and population capacity). A higher tax rate earns more gold per hour but pulls loyalty — and so the population target — down; see Population, Loyalty & Tax for the full tick-by-tick formula. The town view shows population current/max plus loyalty and grievance bars; the resource panel shows current / idle population (idle = total minus units in training). Click the tax % indicator to open the Tax window and adjust the rate.

Heroes & commanders

Recruit heroes at the Inn building. Each hero has Politics, Attack, and Intelligence stats plus a star rating (0–5). Assign an idle hero to an outgoing attack to boost its power by its Attack stat (+1% per point); heroes gain XP per battle, and each level-up grants 1 stat point to allocate from the hero card. A hero may become Wounded after a defeat (recover them in the Hospital window) or Captured after a total loss — a captured hero waits on its captor’s persuade-or-release choice, while enemy heroes YOU capture appear in the Heroes window with Persuade and Release buttons. Reward a hero with gold to raise its loyalty.

Diplomacy & protection

Alliances can be in WAR, ALLY, NAP, or Neutral relations with each other. Alliance leaders propose and manage relations from the Diplomacy tab inside the Alliance screen.

Every new town starts under beginner protection (Truce) for a configurable number of hours. Launching an attack ends your own protection. After being attacked, a defending town receives a shorter post-attack protection window. Protected towns display a Truce badge in the map popup and cannot be attacked until the window expires.

Loading and browser support

The client is built to stay light on a slow connection. The first load brings only the shell, the town view and the game state; each window (Reports, Market, Heroes, …) and the world map download the first time you open them and stay cached after that, so a window you have not used costs nothing. If a window fails to download — a dropped connection, or a deployment that landed mid-session — you get a “Could not load that screen” notice and opening it again retries.

Entering a realm loads its game state and its catalogs (the building, unit and research types) once. If the catalogs fail to load, opening any window, entering the realm again or reloading the page tries again.

The chat panel and the announcement ticker in the top strip refresh only while you can see them. In a background tab, or on a phone, where the layout has no room for them, they stop asking the server. When they come back into view they catch up once, and only if what they show is older than their own refresh (30 seconds for the chat, a minute for the ticker), so switching tabs for a moment or turning a phone sideways and back costs nothing. The game state follows the same rule when you come back to the tab: it refreshes at once only if its last refresh is more than 12 seconds old, or if the connection had been failing (so Reconnecting… clears as soon as the server answers).

After an action such as an upgrade, a dispatch or a claim, the game shows the result once a game-state refresh that started after the action has arrived, so the screen never shows the action as undone. If a regular refresh was already on its way, that takes one more round trip.

If the connection drops, you see one “Can’t reach the server. Check your connection.” notice, not one for every request that fails while you are offline. If the server itself fails to answer (during a deployment, say), the notice reads “The server could not answer (502). Try again in a moment.” instead. A request with no answer within 40 seconds ends with “The server is taking too long to answer. It may still have done what you asked: check before trying again.” When the game state has failed to refresh twice in a row (12 to 24 seconds), a Reconnecting… banner appears above the stage. It clears at the next successful game-state refresh: within 12 seconds of the server answering again, or at once when your browser reports that the network is back. Both take longer when the server is slow to answer, because each refresh waits up to 40 seconds. Something you tried while the connection was down may not have gone through, or it may have: the server can receive a request whose answer never reaches you. The button comes back as soon as the request fails. Once the banner is gone and the game state has refreshed, check before trying again.

All painted art (buildings, icons, portraits, the stage backdrops) is served in modern formats: AVIF where your browser decodes it, otherwise WebP, sized to how large it is actually drawn on your screen. Browsers that decode neither still get PNGs, at a smaller size — the game plays the same, the paintings are just a little softer. No extension or setting is involved: the browser picks the best format it understands.

With a screen reader, a picture that carries meaning is read by what it shows: the wood icon beside an amount reads “Wood”, a building on the town grid reads its name and level. A picture that only repeats the text next to it (the hourglass beside a countdown, a unit’s portrait beside its name) is skipped.

Supported browsers

The web client runs in a current desktop or mobile browser:

BrowserVersion
Chrome, Edge and other Chromium browsers111 or newer
Firefox114 or newer
Safari, on Mac, iPhone and iPad16.4 or newer

A free account plays only here: its tokens are refused anywhere else (Scripting needs Premium). A browser older than these may be refused the same way (Safari before 16.4 always is): after you sign in, nothing loads and the game shows the “Scripting needs Premium” message. Update the browser.

The browser, the API and MCP are the same game

There is one world and one set of rules. The web client is just another client of the same REST API — and the MCP server exposes that same API as agent tools. So your agent can manage the empire you started by hand: log in via the browser, found and place a town, then point an MCP client at the realm and let it take over from get_state. Switch back to the browser any time to watch it play.

Arrivals and timed completions (attacks, scouts, support, trades, research, training) are resolved by a background loop within seconds of their due time — the browser, like any agent, simply observes the result. See game state for the single call that drives every decision.