Puzzles: real traffic routed by the game, routers, link sizes and paths

Every puzzle now carries demand (eyeballs pulling from a content origin, circuits
with latency caps, best-effort flows) routed by compute(). Stars: delivered,
within budget, N-1 under load. Routers, ports, metrics, standby and the
redundancy check work in puzzles; the whole world is open. Weekly schema 2
carries the demand; scripts/lib/puzzle-solver.js sizes and searches builds.
This commit is contained in:
Frederic Jung 2026-10-29 10:35:28 +01:00
parent 9b7b1c150c
commit e90f5f675e
No known key found for this signature in database
18 changed files with 817 additions and 364 deletions

View file

@ -2907,56 +2907,79 @@
"progress.your_score_peak_traffic":"Your score: peak traffic",
"progress.your_traffic_to_and_from_asia":"Your traffic to and from Asia",
"puzzles.a_backhoe_walks_into_your_network":"A backhoe walks into your network. Nothing happens.",
"puzzles.a_bigger_boat":"A Bigger Boat",
"puzzles.a_cut_on_where_drops_g":"A cut on {where} drops {g}",
"puzzles.a_different_route":"A different route",
"puzzles.a_diverse_route":"A diverse route (+40%)",
"puzzles.a_pop_costs_setup_plus_a_year":"A POP costs {setup} to set up, then {mo}/mo. Puzzles count the setup and a year of rent.",
"puzzles.a_tiny_island_where_half_the":"A tiny island where half the Pacific's cables stop for coffee.",
"puzzles.a_to_b_under_ms":"{a} → {b} under {ms} ms",
"puzzles.a_to_b_under_ms_now":"{a} → {b} under {ms} ms (now {now} ms)",
"puzzles.aloha_latency":"Aloha Latency",
"puzzles.add_a_router_cost":"Add a router {cost}/yr",
"puzzles.add_another_link_here":"Add another link on this pair",
"puzzles.all_of_europe_s_cat_videos":"All of Europe's cat videos live in London, and every one of them goes through your router.",
"puzzles.already_here_list":"Already on this pair: {list}",
"puzzles.another_wave_on_this_cable":"Another wave on this cable",
"puzzles.avoid_list":"avoid {list}",
"puzzles.back_to_my_network":"Back to my network",
"puzzles.back_to_the_title":"Back to the title screen",
"puzzles.beat_the_clock_light_in_glass":"Light in glass does 200 km per millisecond. Pick your cables like it matters.",
"puzzles.baltic_shortcut":"Baltic Shortcut",
"puzzles.belt_and_braces":"Belt and Braces",
"puzzles.best_effort":"best effort",
"puzzles.best_x":"best {x}",
"puzzles.biggest_wave":"Biggest wave",
"puzzles.budget":"Budget",
"puzzles.budget_x":"budget {x}",
"puzzles.connect_list":"Connect {list}.",
"puzzles.connected":"Connected",
"puzzles.capacity_first_every_link_has_a":"Capacity first: every link has a size, and the traffic has to fit. Roomy budgets, and the first two are on the house.",
"puzzles.carry_list":"Carry: {list}.",
"puzzles.carrying":"Carrying",
"puzzles.carrying_on_this_pair":"Carrying (all {n} links on this pair)",
"puzzles.content_lives_in_list":"Content lives in {list}: eyeballs pull from the nearest.",
"puzzles.copied_paste_it_anywhere":"Copied! Paste it anywhere:<br>{t}",
"puzzles.de_kicks_sales_has_your_number":"DE-KICKS sales has your number. Connect Germany without Frankfurt.",
"puzzles.delivered":"Delivered",
"puzzles.diverse_route_40_survives_a_backhoe":"Diverse route (+40%, survives a backhoe)",
"puzzles.down_under_up_and_running":"Down Under, Up and Running",
"puzzles.drag_from_a_pink_pop_to":"Drag from a pink POP to another city to lease a wave",
"puzzles.drag_from_this_pop_onto_another":"Drag from this POP onto another puzzle city, or pick one here.",
"puzzles.edge_lord":"Edge Lord",
"puzzles.euro_trip":"Euro Trip",
"puzzles.every_bit_arrives":"every bit arrives",
"puzzles.every_internet_starts_with_one_tube":"Every internet starts with one tube.",
"puzzles.every_link_n_g_or_more":"Every link {n}G or more",
"puzzles.every_star_in_this_pack_is":"Every star in this pack is yours.",
"puzzles.fat_pipes_only":"Fat Pipes Only",
"puzzles.everything_at_once_across_oceans":"Everything at once, across oceans. Tight budgets.",
"puzzles.fat_pipes":"Fat Pipes",
"puzzles.five_small_cities_one_small_router":"Five cities, a few gigs each, and a router with eight ports. Count before you dig.",
"puzzles.fjord_focus":"Fjord Focus",
"puzzles.flash_boys":"Flash Boys",
"puzzles.for_architects_who_sleep_through_backhoes":"For architects who sleep through backhoe season.",
"puzzles.four_capitals_one_very_long_winter":"Four capitals, one very long winter, zero excuses for downtime.",
"puzzles.flow_circuit_a_b":"{a} ⇄ {b} circuit",
"puzzles.flow_eyeballs_in_city":"Eyeballs in {city}",
"puzzles.four_cities_four_cables_one_ring":"Four cities, one ring. Tolkien would approve; your NOC definitely does.",
"puzzles.four_cities_one_continent_and_a":"Four cities, one continent and a lot of corn between them.",
"puzzles.framed_n_stars_from_the_old":"Framed on the wall: {n} ⭐ from the old puzzles",
"puzzles.frankfurt_to_singapore_the_short_way":"Frankfurt to Singapore the short way. The long way is overland, and it shows.",
"puzzles.free":"Free",
"puzzles.goal":"Goal",
"puzzles.goal_city":"Goal city",
"puzzles.guam_slam":"Guam Slam",
"puzzles.grand_tour":"Grand Tour",
"puzzles.hello_world":"Hello, World",
"puzzles.honolulu_the_world_s_most_scenic":"Honolulu: the world's most scenic regeneration site.",
"puzzles.hub_cap":"Hub Cap",
"puzzles.includes_a_new_pop_in_city":"Includes a new POP in {city} ({price} for a year).",
"puzzles.installed":"installed",
"puzzles.it_works_finance_and_the_backhoe":"It works! Finance and the backhoe would like a word.",
"puzzles.keep_building":"Keep building",
"puzzles.kiwi_fruit_salad":"Kiwi Fruit Salad",
"puzzles.latency":"Latency",
"puzzles.latency_caps":"latency caps",
"puzzles.lease_a_wave_to":"Lease a wave to",
"puzzles.loading_this_week_s_puzzle":"Loading this week's puzzle…",
"puzzles.london_wants_half_a_terabit_your":"London wants half a terabit, and your routers came off eBuy.",
"puzzles.model_facts":"{cap} · {ports} ports · waves up to {wave}",
"puzzles.more_puzzles":"More puzzles",
"puzzles.n_1_club":"N-1 Club",
"puzzles.n_1_connect_everything_first":"N-1: connect everything first",
"puzzles.n_g_links":"{n}G links",
"puzzles.n_1_deliver_everything_first":"N-1: deliver everything first",
"puzzles.n_circuits":{"one":"{n} circuit","other":"{n} circuits"},
"puzzles.n_g_of_eyeballs":"{n} of eyeballs",
"puzzles.n_links_on_this_pair":"{n} links on this pair: {what}",
"puzzles.n_stars_left_in_this_pack":{"one":"{n} ⭐ left in this pack","other":"{n} ⭐ left in this pack"},
"puzzles.n_week_streak":{"one":"{n} week in a row","other":"{n} weeks in a row"},
"puzzles.needs_what":"needs {what}",
"puzzles.new_this_sunday":"New this Sunday!",
"puzzles.new_zealand_is_far_from_everything":"New Zealand is far from everything. That is the point, and the problem.",
"puzzles.next_pack_unlocks_at_n":"Next pack, {pack}, unlocks at {n}⭐",
@ -2966,26 +2989,31 @@
"puzzles.no_budget":"no budget",
"puzzles.no_budget_star_on_the_house":"no budget: ⭐ on the house",
"puzzles.no_cable_lands_in_both_try":"No cable lands in both {a} and {b}. Try a stepping stone in between.",
"puzzles.no_clock_no_bills_nothing_breaks":"No clock, no bills, nothing breaks. Connect the cities, then go for three stars: under budget, and still connected when any one link is cut.",
"puzzles.no_clock_no_bills_real_traffic":"No clock, no bills, nothing breaks. Real traffic, routed like the real game: deliver every flow, stay under budget, and keep it all flowing when any one trench or cable is cut.",
"puzzles.no_free_ports_in_list":"No free router ports in {list}: add a router or a bigger model first.",
"puzzles.no_subsea":"no subsea",
"puzzles.no_subsea_cables":"No subsea cables",
"puzzles.nobody_ever_got_fired_for_buying":"Nobody ever got fired for buying 100G.",
"puzzles.no_traffic_starts_or_ends_here":"No traffic starts or ends here. You can still build here, if it gets you somewhere.",
"puzzles.not_a_city_you_can_build_in":"You can't build in that city.",
"puzzles.not_in_the_plan":"Not in the plan",
"puzzles.not_this_one_find_a_way_around":"Not this one. Find a way around.",
"puzzles.not_through_frankfurt":"Not Through Frankfurt",
"puzzles.off_limits":"Off limits",
"puzzles.on_the_house":"On the house",
"puzzles.one_backhoe_away_from_a_very":"One backhoe away from a very long night. Add a second path for ⭐⭐⭐.",
"puzzles.one_cut_splits_it":"One cut splits it",
"puzzles.one_cut_splits_it_where":"One cut splits it: {where}",
"puzzles.one_ring_through_every_pop":"One ring through every POP",
"puzzles.one_very_big_island_and_a":"One very big island, and a lot of very empty fiber.",
"puzzles.open_a_pop_cost":"Open a POP · {cost}",
"puzzles.pacific_rim_shot":"Pacific Rim Shot",
"puzzles.ping_pong_to_tokyo":"Ping Pong to Tokyo",
"puzzles.or_drag_to_any_city_on_the_map":"Or drag to any city on the map: the whole world is open.",
"puzzles.paris_wants_150g_one_100g_wave":"Paris wants 150G. One 100G wave is a garden hose.",
"puzzles.port_authority":"Port Authority",
"puzzles.ports":"Ports",
"puzzles.price_per_year":"{price}/yr",
"puzzles.puzzle":"Puzzle",
"puzzles.puzzle_solved":"Puzzle solved",
"puzzles.puzzles":"Puzzles",
"puzzles.puzzles_got_traffic_note":"Puzzles got traffic! Every puzzle now carries real flows, so the stars start again. Your old {n} ⭐ are framed on the wall.",
"puzzles.remove_a_router":"Remove a router",
"puzzles.remove_this_link":"Remove this link",
"puzzles.remove_this_pop":"Remove this POP",
"puzzles.reset":"Reset",
@ -2993,41 +3021,48 @@
"puzzles.ring":"ring",
"puzzles.ring_of_fire":"Ring of Fire",
"puzzles.rock_solid_and_gold_plated_the":"Rock solid, and gold plated. The CFO has questions.",
"puzzles.router_load":"Router load",
"puzzles.router_model":"Router model",
"puzzles.router_rodeo":"Router Rodeo",
"puzzles.routers_have_ports_and_a_limit":"Routers have ports and a limit. Fill one and the traffic stops at the door.",
"puzzles.rule_not_via_list":"Rule: not via {list}",
"puzzles.samba_sprint":"Samba Sprint",
"puzzles.same_cable_same_anchor":"Same cable as a link you have: one anchor takes both.",
"puzzles.same_puzzle_for_everyone_this_week":"Same puzzle for everyone this week",
"puzzles.same_trench_cheaper":"Same trench (cheaper)",
"puzzles.same_trench_cheaper_one_backhoe_cuts":"Same trench (cheaper, one backhoe cuts both)",
"puzzles.sao_paulo_to_miami_before_the":"São Paulo to Miami before the caipirinha gets warm.",
"puzzles.sea_to_shining_sea":"Sea to Shining Sea",
"puzzles.seattle_to_singapore_with_a_stop":"Seattle to Singapore, with a stop for sushi and dim sum.",
"puzzles.share_line":"Series of Tubes puzzle {what} {stars} {spend} · seriesoftub.es",
"puzzles.size":"Size",
"puzzles.small_calm_network_builds":"Small, calm network builds",
"puzzles.smorgasbord":"Smörgåsbord",
"puzzles.so_close_one_more_link_and":"So close: one more link and a backhoe can't touch you.",
"puzzles.speed_runs":"Speed Runs",
"puzzles.small_networks_real_traffic":"Small networks, real traffic",
"puzzles.spent_x":"Spent {x}",
"puzzles.spent_x_of_y":"Spent {x} / {y}",
"puzzles.stepping_stone_optional":"Stepping stone (optional)",
"puzzles.suez_you_later":"Suez You Later",
"puzzles.survives_any_single_cut":"Survives any single cut",
"puzzles.survive_any_single_cut_with_the":"Survive any single cut, with the traffic still flowing. Connected is not enough.",
"puzzles.survives_any_single_cut_under_load":"Survives any single cut, under load",
"puzzles.tap_a_goal_city_to_open":"Tap a glowing city to open your first POP",
"puzzles.that_city_is_not_part_of":"That city is not part of this puzzle.",
"puzzles.the_pacific_is_big_light_is":"The Pacific is big. Light is fast. Your budget is neither.",
"puzzles.the_pacific_rim_where_every_hop":"The Pacific rim, where every hop is an ocean.",
"puzzles.the_content_origin_lives_here":"The content lives here. Eyeballs elsewhere pull from it.",
"puzzles.the_oil_rigs_want_their_numbers":"The oil rigs want their numbers fast. The shortest road to Stavanger is not the quickest.",
"puzzles.the_road_to_tallinn_is_short":"The road to Tallinn is short. The light through Helsinki is shorter.",
"puzzles.the_shark_tank":"The Shark Tank",
"puzzles.the_sharks_have_been_biting_again":"The sharks have been biting again. Keep it on dry land.",
"puzzles.the_sharks_say_no":"The sharks say no.",
"puzzles.this_link":"This link",
"puzzles.three_cities_two_currencies_one_very":"Three cities, two currencies, one very short tunnel under the sea.",
"puzzles.traders_paid_millions_to_shave_milliseconds":"Traders paid millions to shave milliseconds off this route. You get to do it for less.",
"puzzles.traffic_cops":"Traffic Cops",
"puzzles.trench_n":"trench {n}",
"puzzles.two_cables_across_the_atlantic_because":"Two cables across the Atlantic, because one is a hope, not a plan.",
"puzzles.under_n_ms":"under {n} ms",
"puzzles.u_of_m_used":"{u} of {m} used",
"puzzles.undo":"Undo",
"puzzles.unlocks_at_n_stars":"Unlocks at {n}⭐",
"puzzles.weekly_puzzle":"Weekly puzzle",
"puzzles.weekly_puzzle_key":"Weekly puzzle {key}",
"puzzles.with_the_pop_price":"with the POP: {price}",
"puzzles.your_first_tubes_roomy_budgets":"Your first tubes. Roomy budgets, and the first two are on the house.",
"puzzles.your_pop":"Your POP",
"puzzles.your_routers_pick_the_path":"Your routers pick the path. Tell them which: metrics, lowest latency, best effort.",
"puzzles.your_stars":"Your stars",
"puzzles_weekly.detour":"Detour",
"puzzles_weekly.island_hopping":"Island hopping",