Pacific islands: twelve cities, island landings and faster transpacific hops

Honolulu, Guam, Koror, Majuro, Port Moresby, Honiara, Noumea, Suva,
Nuku'alofa, Apia, Pago Pago and Papeete, each its own landmass with its
real outline on the map. Exchanges only where one runs today (DRF IX,
Guam IX, Fiji-IXP, CAN'L IXP, Solomon Islands IX); PNG and Tonga have
none active, Samoa's is still planned.

Cables follow real landings: new pairs on Southern Cross, Hawaiki, AJC,
JGA, Bifrost and Humboldt (existing pairs untouched, so saves keep their
links), plus SEA-US, AAG, Echo, HANTRU-1, Coral Sea, Gondwana-1, Tonga
Cable, Tui-Samoa, ASH, Honotua, Manatua and SX NEXT as puns.

Subsea waves have no regens, so a POP on an island splits a crossing into
shorter spans: California-Sydney 400G -> 1.6T per wave via Honolulu and
Suva, LA-Hong Kong/Manila 400G -> 800G via Guam, Santiago-Sydney
400G -> 800G via Tahiti (1.2T on own fiber). LA-Tokyo stays 800G leased:
Honolulu-Guam is just over the 6,000 km 1.6T reach.

Twelve island networks, all with Tier 1 upstreams so Tier 1 players keep
their reach. PacNOG in Suva, unreliable power in Guam, Port Moresby and
Honiara, volcano cuts for Tonga, and the Stepping Stones scenario
(1.6T hop by hop from Los Angeles to Sydney).
This commit is contained in:
Frederic Jung 2026-10-26 13:37:41 +01:00
parent 4682f16730
commit a164b512ba
No known key found for this signature in database
5 changed files with 190 additions and 16 deletions

View file

@ -6,6 +6,7 @@ All notable changes to this project are documented here. The project follows
## [Unreleased]
- Twelve Pacific islands join the map: Honolulu, Guam, Koror, Majuro, Port Moresby, Honiara, Nouméa, Suva, Nuku’alofa, Apia, Pago Pago and Papeete. The cables across the Pacific now stop where they really land, and a POP on an island splits a long crossing into shorter hops that each carry more: California to Sydney goes from 400G to 1.6T per wave via Honolulu and Suva, Hong Kong and Manila to Los Angeles from 400G to 800G via Guam, and Santiago to Sydney from 400G to 800G via Tahiti. Twelve new cables, among them SEA-US Later, Echo-Chamber and Coral Sea Shanty, link the islands, and the old ones gain island stops. Only islands with a real exchange today get one: Honolulu, Guam, Suva, Nouméa and Honiara. Island telcos from Hawaiian Telecombo to Never Too Atoll join the networks, PacNOG meets in Suva every December, Guam, Port Moresby and Honiara have unreliable power, Tonga’s cable has a volcano for a neighbour, and a new scenario, Stepping Stones, asks you to hop the Pacific at 1.6T.
- Big networks are snappier again: working out each day's traffic takes about a third less time on phones and half on desktops, so game days and clicks pause for less. Traffic goes exactly where it went before, and the game makes far less garbage for the browser to clean up.
- Your own subsea cable can no longer be longer than any optic can light (#88). New York to Sydney now says so before you pay, instead of after the ship comes home. Calling off a cable while it is still being laid returns most of the price of the part not laid yet, and an unusable cable from an older save goes back for a full refund.
- Your own IX can now live in either building of a two-site metro, or in both with a second switch, so a dark building no longer takes your exchange down (#36). The LAG buttons that did nothing on your own IX are gone.

View file

@ -2542,4 +2542,47 @@
"Giving it up now returns {price}.":"Rinunciarci adesso ti restituisce {price}.",
"No subsea cable lands in {city}. The nearest landing station is {near}: run fiber there first, then take a cable from it.":"Nessun cavo sottomarino approda a {city}. La stazione di approdo più vicina è {near}: porta prima la fibra fin lì, poi prendi un cavo da lì.",
"{km} km is more than any optic can light, even on the best subsea gear ({max} km at most). Real cables stop at an island or a landing station on the way: lay two shorter ones.":"{km} km sono più di quanto qualsiasi ottica possa illuminare, anche con il miglior equipaggiamento sottomarino (al massimo {max} km). I cavi veri fanno tappa su un’isola o in una stazione di approdo lungo la strada: posane due più corti.",
"1.6T on every hop from Los Angeles to Sydney":"1.6T su ogni tratta da Los Angeles a Sydney",
"A path from Los Angeles to Sydney with 1.6T on every hop, a path from Los Angeles to Tokyo, and 150 Gbps served":"Un percorso da Los Angeles a Sydney con 1.6T su ogni tratta, un percorso da Los Angeles a Tokyo e 150 Gbps serviti",
"A path from Los Angeles to Tokyo":"Un percorso da Los Angeles a Tokyo",
"A small island where cables from the US, Japan, Australia, the Philippines and Singapore all meet. Split a crossing here and each half carries more. Typhoons take the grid down every few years, so bring a generator.":"Una piccola isola dove si incontrano i cavi da Stati Uniti, Giappone, Australia, Filippine e Singapore. Spezza qui una traversata e ogni metà trasporta di più. Ogni pochi anni un tifone butta giù la rete elettrica, quindi porta un generatore.",
"American Samoa to Hawaii and Samoa on old, smoky glass.":"Dalle Samoa Americane alle Hawaii e a Samoa, su vetro vecchio e affumicato.",
"American Samoa: a deep harbour, tuna canneries and a branch of the cable from Australia to Oregon.":"Samoa Americane: un porto profondo, conservifici di tonno e una diramazione del cavo dall’Australia all’Oregon.",
"An undersea volcano erupted next to your {a}–{b} cable. The repair ship found it in pieces, some of them kilometres away.":"Un vulcano sottomarino è esploso accanto al tuo cavo {a}–{b}. La nave di riparazione l’ha trovato a pezzi, alcuni a chilometri di distanza.",
"California to Hong Kong via Hawaii and Guam. A layered cake of repairs.":"Dalla California a Hong Kong via Hawaii e Guam. Una torta a strati di riparazioni.",
"California to Singapore via Guam. Everyone on it agrees with each other.":"Dalla California a Singapore via Guam. Tutti quelli che ci passano sono d’accordo tra loro.",
"Fiji to Samoa. Always room for one more packet.":"Dalle Figi a Samoa. C’è sempre posto per un altro pacchetto.",
"Fiji to Tonga, the only way in. Try saying it three times fast.":"Dalle Figi a Tonga, l’unica via d’accesso. Prova a dirlo tre volte di fila, veloce.",
"Fiji’s capital and the crossroads of the South Pacific. Cables between the US, Australia and New Zealand stop here, and smaller ones go on to Tonga and Samoa.":"La capitale delle Figi e il crocevia del Pacifico del Sud. I cavi tra Stati Uniti, Australia e Nuova Zelanda fanno tappa qui, e cavi più piccoli proseguono verso Tonga e Samoa.",
"Fiji’s international gateway. Very clever about where your traffic should go, as long as it goes through Suva.":"Il gateway internazionale delle Figi. Molto furbo nel decidere dove va il tuo traffico, purché passi da Suva.",
"Guam to the Marshall Islands, with a stop on every atoll that writes in.":"Da Guam alle Isole Marshall, con una tappa su ogni atollo che scrive per chiederla.",
"Guam’s incumbent and the way out for half of Micronesia. The prices are a heist, but nobody else is selling.":"L’incumbent di Guam e la via d’uscita per mezza Micronesia. I prezzi sono una rapina, ma nessun altro vende.",
"Guam’s mobile network: rice, a burger, a fried egg and lots of gravy, served over 5G.":"La rete mobile di Guam: riso, un hamburger, un uovo fritto e tanto sugo, serviti in 5G.",
"Halfway between California and everything else in the Pacific. Cables from the US, Australia, New Zealand, Guam and Tahiti come ashore on Oahu. A POP here ends the light’s long swim: waves start fresh on each side, so each half carries more.":"A metà strada tra la California e tutto il resto del Pacifico. A Oahu approdano i cavi da Stati Uniti, Australia, Nuova Zelanda, Guam e Tahiti. Un POP qui interrompe la lunga nuotata della luce: le wave ripartono da zero su ogni lato, quindi ogni metà trasporta di più.",
"Hawaii’s incumbent. Every plan comes with two scoops of rice and a side of macaroni salad.":"L’incumbent delle Hawaii. Ogni piano include due palline di riso e un contorno di insalata di maccheroni.",
"Honolulu, in the middle of the Pacific. The cables between the Americas, Asia and Australia are so long that a wave on them carries only 400G or 800G. Stop the light on an island, start it fresh, and every hop gets shorter and faster. You start with 1.6T gear unlocked.":"Honolulu, in mezzo al Pacifico. I cavi tra le Americhe, l’Asia e l’Australia sono così lunghi che una wave ci porta solo 400G o 800G. Ferma la luce su un’isola, falla ripartire da zero, e ogni tratta diventa più corta e più veloce. Inizi con l’hardware 1.6T già sbloccato.",
"Los Angeles to Hawaii, Guam and the Philippines. See you later, packets.":"Da Los Angeles alle Hawaii, a Guam e alle Filippine. Ci vediamo dopo, pacchetti.",
"New Caledonia, a slice of France in the Coral Sea, with a cable to Sydney and a nickel mine on every hill.":"La Nuova Caledonia, un pezzo di Francia nel Mar dei Coralli, con un cavo per Sydney e una miniera di nichel su ogni collina.",
"Palau, on a branch cable from Guam. Coral reefs, jellyfish that do not sting, and very little traffic.":"Palau, su una diramazione del cavo da Guam. Barriere coralline, meduse che non pungono e pochissimo traffico.",
"Palau’s telco. Snorkel down and you can see the cable.":"La telco di Palau. Fai snorkeling e vedi il cavo.",
"Papua New Guinea’s capital, in a country of eight hundred languages, with a cable to Sydney. The grid fails often, so bring a generator.":"La capitale della Papua Nuova Guinea, un paese con ottocento lingue, con un cavo per Sydney. La rete elettrica salta spesso, quindi porta un generatore.",
"Papua New Guinea’s state telco: eight hundred languages, one billing system.":"La telco di stato della Papua Nuova Guinea: ottocento lingue, un solo sistema di fatturazione.",
"Phones on every island from Papua New Guinea to Tonga, and transit to sell on each one.":"Telefoni su ogni isola dalla Papua Nuova Guinea a Tonga, e transit da vendere su ciascuna.",
"Runs the post, the phones and the internet in New Caledonia and French Polynesia. Packets arrive stamped, with a croissant.":"Gestisce la posta, i telefoni e internet in Nuova Caledonia e nella Polinesia Francese. I pacchetti arrivano affrancati, con un croissant.",
"Samoa to Tahiti by way of the Cook Islands. Steeped slowly.":"Da Samoa a Tahiti passando per le Isole Cook. In infusione lenta.",
"Samoa’s broadband, promised with a slice of something sweet.":"La banda larga di Samoa, promessa con una fetta di qualcosa di dolce.",
"Samoa’s capital, with cables to Fiji, American Samoa and Tahiti. Sunday is for church, so maintenance windows are on Saturday.":"La capitale di Samoa, con cavi per le Figi, le Samoa Americane e Tahiti. La domenica è per la chiesa, quindi le finestre di manutenzione sono il sabato.",
"Stepping Stones":"Di isola in isola",
"Sydney to Nouméa. Wishes it were a supercontinent.":"Da Sydney a Nouméa. Sogna di essere un supercontinente.",
"Sydney to Papua New Guinea and the Solomon Islands. Hums while it works.":"Da Sydney alla Papua Nuova Guinea e alle Isole Salomone. Canticchia mentre lavora.",
"Tahiti to Hawaii, trolling for bandwidth.":"Da Tahiti alle Hawaii, a pesca di banda.",
"Tahiti, in French Polynesia. A cable runs north to Hawaii, and the new one from Chile to Australia stops here: the stepping stone between South America and Oceania.":"Tahiti, nella Polinesia Francese. Un cavo corre a nord verso le Hawaii, e quello nuovo dal Cile all’Australia fa tappa qui: il trampolino tra il Sud America e l’Oceania.",
"The Marshall Islands’ telco, two metres above the sea and proud of every centimetre.":"La telco delle Isole Marshall, due metri sopra il mare e fiera di ogni centimetro.",
"The Solomon Islands’ capital, on Guadalcanal. The cable to Sydney only arrived a few years ago; before that it was all satellite. The power is less reliable than the cable.":"La capitale delle Isole Salomone, su Guadalcanal. Il cavo per Sydney è arrivato solo pochi anni fa; prima era tutto satellite. La corrente è meno affidabile del cavo.",
"The Solomon Islands’ incumbent. Yours sincerely, eventually.":"L’incumbent delle Isole Salomone. Distinti saluti, prima o poi.",
"The capital of the Marshall Islands, a ring of coral two metres above the sea. One cable to Guam, and every packet knows it.":"La capitale delle Isole Marshall, un anello di corallo due metri sopra il mare. Un solo cavo per Guam, e ogni pacchetto lo sa.",
"The old workhorse’s younger sibling: Los Angeles to Sydney with a branch to Fiji.":"Il fratellino del vecchio cavallo da tiro: da Los Angeles a Sydney con una diramazione per le Figi.",
"The seabed off Tonga slid down a slope and took your {a}–{b} cable with it. The repair ship is coming from Papua New Guinea.":"Il fondale al largo di Tonga è franato giù per un pendio e si è portato via il tuo cavo {a}–{b}. La nave di riparazione arriva dalla Papua Nuova Guinea.",
"Tonga hangs on one cable from Fiji. In 2022 an undersea volcano cut it, and the country was offline for weeks.":"Tonga è appesa a un solo cavo dalle Figi. Nel 2022 un vulcano sottomarino l’ha tranciato e il paese è rimasto offline per settimane.",
"Tonga’s own telco. Lived through a volcano that cut its only cable, and jokes about it now.":"La telco di Tonga. È sopravvissuta a un vulcano che le ha tranciato l’unico cavo, e ora ci scherza su.",
};

View file

@ -2542,4 +2542,47 @@
"Giving it up now returns {price}.":"Desistir agora devolve {price}.",
"No subsea cable lands in {city}. The nearest landing station is {near}: run fiber there first, then take a cable from it.":"Nenhum cabo submarino chega a {city}. A estação de chegada mais próxima é {near}: leve fibra até lá primeiro e depois pegue um cabo de lá.",
"{km} km is more than any optic can light, even on the best subsea gear ({max} km at most). Real cables stop at an island or a landing station on the way: lay two shorter ones.":"{km} km é mais do que qualquer óptica consegue iluminar, mesmo com o melhor equipamento submarino ({max} km no máximo). Cabos de verdade param numa ilha ou numa estação de chegada no caminho: lance dois mais curtos.",
"1.6T on every hop from Los Angeles to Sydney":"1.6T em cada trecho de Los Angeles a Sydney",
"A path from Los Angeles to Sydney with 1.6T on every hop, a path from Los Angeles to Tokyo, and 150 Gbps served":"Um caminho de Los Angeles a Sydney com 1.6T em cada trecho, um caminho de Los Angeles a Tóquio e 150 Gbps atendidos",
"A path from Los Angeles to Tokyo":"Um caminho de Los Angeles a Tóquio",
"A small island where cables from the US, Japan, Australia, the Philippines and Singapore all meet. Split a crossing here and each half carries more. Typhoons take the grid down every few years, so bring a generator.":"Uma ilha pequena onde se encontram os cabos dos EUA, do Japão, da Austrália, das Filipinas e de Singapura. Divida uma travessia aqui e cada metade carrega mais. A cada poucos anos um tufão derruba a rede elétrica, então traga um gerador.",
"American Samoa to Hawaii and Samoa on old, smoky glass.":"Da Samoa Americana ao Havaí e a Samoa, em vidro velho e enfumaçado.",
"American Samoa: a deep harbour, tuna canneries and a branch of the cable from Australia to Oregon.":"Samoa Americana: um porto fundo, fábricas de atum em lata e um ramal do cabo da Austrália ao Oregon.",
"An undersea volcano erupted next to your {a}–{b} cable. The repair ship found it in pieces, some of them kilometres away.":"Um vulcão submarino entrou em erupção ao lado do seu cabo {a}–{b}. O navio de reparo o encontrou em pedaços, alguns a quilômetros de distância.",
"California to Hong Kong via Hawaii and Guam. A layered cake of repairs.":"Da Califórnia a Hong Kong via Havaí e Guam. Um bolo em camadas de reparos.",
"California to Singapore via Guam. Everyone on it agrees with each other.":"Da Califórnia a Singapura via Guam. Todo mundo nele concorda com todo mundo.",
"Fiji to Samoa. Always room for one more packet.":"De Fiji a Samoa. Sempre cabe mais um pacote.",
"Fiji to Tonga, the only way in. Try saying it three times fast.":"De Fiji a Tonga, o único caminho. Tente falar três vezes bem rápido.",
"Fiji’s capital and the crossroads of the South Pacific. Cables between the US, Australia and New Zealand stop here, and smaller ones go on to Tonga and Samoa.":"A capital de Fiji e a encruzilhada do Pacífico Sul. Os cabos entre os EUA, a Austrália e a Nova Zelândia param aqui, e cabos menores seguem para Tonga e Samoa.",
"Fiji’s international gateway. Very clever about where your traffic should go, as long as it goes through Suva.":"O gateway internacional de Fiji. Muito esperto sobre para onde seu tráfego deve ir, desde que passe por Suva.",
"Guam to the Marshall Islands, with a stop on every atoll that writes in.":"De Guam às Ilhas Marshall, com uma parada em cada atol que manda carta pedindo.",
"Guam’s incumbent and the way out for half of Micronesia. The prices are a heist, but nobody else is selling.":"A incumbente de Guam e a saída para meia Micronésia. Os preços são um assalto, mas ninguém mais vende.",
"Guam’s mobile network: rice, a burger, a fried egg and lots of gravy, served over 5G.":"A rede móvel de Guam: arroz, hambúrguer, ovo frito e muito molho, servidos via 5G.",
"Halfway between California and everything else in the Pacific. Cables from the US, Australia, New Zealand, Guam and Tahiti come ashore on Oahu. A POP here ends the light’s long swim: waves start fresh on each side, so each half carries more.":"No meio do caminho entre a Califórnia e todo o resto do Pacífico. Os cabos dos EUA, da Austrália, da Nova Zelândia, de Guam e do Taiti chegam a Oahu. Um POP aqui encerra o longo nado da luz: as waves recomeçam do zero de cada lado, então cada metade carrega mais.",
"Hawaii’s incumbent. Every plan comes with two scoops of rice and a side of macaroni salad.":"A incumbente do Havaí. Todo plano vem com duas conchas de arroz e uma porção de salada de macarrão.",
"Honolulu, in the middle of the Pacific. The cables between the Americas, Asia and Australia are so long that a wave on them carries only 400G or 800G. Stop the light on an island, start it fresh, and every hop gets shorter and faster. You start with 1.6T gear unlocked.":"Honolulu, no meio do Pacífico. Os cabos entre as Américas, a Ásia e a Austrália são tão longos que uma wave neles carrega só 400G ou 800G. Pare a luz numa ilha, recomece do zero, e cada trecho fica mais curto e mais rápido. Você começa com equipamento 1.6T desbloqueado.",
"Los Angeles to Hawaii, Guam and the Philippines. See you later, packets.":"De Los Angeles ao Havaí, a Guam e às Filipinas. Até mais, pacotes.",
"New Caledonia, a slice of France in the Coral Sea, with a cable to Sydney and a nickel mine on every hill.":"A Nova Caledônia, um pedaço da França no Mar de Coral, com um cabo para Sydney e uma mina de níquel em cada morro.",
"Palau, on a branch cable from Guam. Coral reefs, jellyfish that do not sting, and very little traffic.":"Palau, num ramal do cabo de Guam. Recifes de coral, águas-vivas que não queimam e pouquíssimo tráfego.",
"Palau’s telco. Snorkel down and you can see the cable.":"A operadora de Palau. Mergulhe de snorkel e dá para ver o cabo.",
"Papua New Guinea’s capital, in a country of eight hundred languages, with a cable to Sydney. The grid fails often, so bring a generator.":"A capital de Papua-Nova Guiné, um país com oitocentas línguas, com um cabo para Sydney. A rede elétrica cai com frequência, então traga um gerador.",
"Papua New Guinea’s state telco: eight hundred languages, one billing system.":"A operadora estatal de Papua-Nova Guiné: oitocentas línguas, um só sistema de cobrança.",
"Phones on every island from Papua New Guinea to Tonga, and transit to sell on each one.":"Celulares em cada ilha de Papua-Nova Guiné a Tonga, e transit para vender em cada uma.",
"Runs the post, the phones and the internet in New Caledonia and French Polynesia. Packets arrive stamped, with a croissant.":"Cuida do correio, dos telefones e da internet na Nova Caledônia e na Polinésia Francesa. Os pacotes chegam selados, com um croissant.",
"Samoa to Tahiti by way of the Cook Islands. Steeped slowly.":"De Samoa ao Taiti passando pelas Ilhas Cook. Em infusão lenta.",
"Samoa’s broadband, promised with a slice of something sweet.":"A banda larga de Samoa, prometida com uma fatia de algo doce.",
"Samoa’s capital, with cables to Fiji, American Samoa and Tahiti. Sunday is for church, so maintenance windows are on Saturday.":"A capital de Samoa, com cabos para Fiji, Samoa Americana e o Taiti. Domingo é dia de igreja, então as janelas de manutenção são no sábado.",
"Stepping Stones":"De ilha em ilha",
"Sydney to Nouméa. Wishes it were a supercontinent.":"De Sydney a Nouméa. Sonha em ser um supercontinente.",
"Sydney to Papua New Guinea and the Solomon Islands. Hums while it works.":"De Sydney a Papua-Nova Guiné e às Ilhas Salomão. Cantarola enquanto trabalha.",
"Tahiti to Hawaii, trolling for bandwidth.":"Do Taiti ao Havaí, pescando banda.",
"Tahiti, in French Polynesia. A cable runs north to Hawaii, and the new one from Chile to Australia stops here: the stepping stone between South America and Oceania.":"O Taiti, na Polinésia Francesa. Um cabo segue ao norte para o Havaí, e o novo do Chile à Austrália para aqui: o trampolim entre a América do Sul e a Oceania.",
"The Marshall Islands’ telco, two metres above the sea and proud of every centimetre.":"A operadora das Ilhas Marshall, a dois metros acima do mar e orgulhosa de cada centímetro.",
"The Solomon Islands’ capital, on Guadalcanal. The cable to Sydney only arrived a few years ago; before that it was all satellite. The power is less reliable than the cable.":"A capital das Ilhas Salomão, em Guadalcanal. O cabo para Sydney só chegou há poucos anos; antes era tudo satélite. A energia é menos confiável que o cabo.",
"The Solomon Islands’ incumbent. Yours sincerely, eventually.":"A incumbente das Ilhas Salomão. Atenciosamente, uma hora dessas.",
"The capital of the Marshall Islands, a ring of coral two metres above the sea. One cable to Guam, and every packet knows it.":"A capital das Ilhas Marshall, um anel de coral a dois metros acima do mar. Um único cabo para Guam, e todo pacote sabe disso.",
"The old workhorse’s younger sibling: Los Angeles to Sydney with a branch to Fiji.":"O irmão mais novo do velho burro de carga: de Los Angeles a Sydney com um ramal para Fiji.",
"The seabed off Tonga slid down a slope and took your {a}–{b} cable with it. The repair ship is coming from Papua New Guinea.":"O fundo do mar perto de Tonga deslizou encosta abaixo e levou junto o seu cabo {a}–{b}. O navio de reparo está vindo de Papua-Nova Guiné.",
"Tonga hangs on one cable from Fiji. In 2022 an undersea volcano cut it, and the country was offline for weeks.":"Tonga depende de um único cabo vindo de Fiji. Em 2022 um vulcão submarino o cortou, e o país ficou offline por semanas.",
"Tonga’s own telco. Lived through a volcano that cut its only cable, and jokes about it now.":"A operadora de Tonga. Sobreviveu a um vulcão que cortou seu único cabo e hoje faz piada disso.",
};

File diff suppressed because one or more lines are too long

View file

@ -592,3 +592,47 @@ test('Africa: more countries, cables along both coasts, border costs and Cape to
assert.equal(ev('scnProg().items.length'), 4);
assert.deepEqual(errors, []);
});
test('Pacific islands: real landings, real exchanges only, and island hops carry more per wave', () => {
const { ev, errors } = load();
start(ev);
const isl = ['hnl', 'gum', 'ror', 'maj', 'pom', 'hir', 'nou', 'suv', 'tbu', 'apw', 'ppg', 'ppt'];
for (const c of isl) {
assert.ok(ev(`CABLE_PAIRS.some(p=>p.a==='${c}'||p.b==='${c}')`), `${c} has a cable`);
assert.ok(ev(`NETS.some(n=>n.price&&n.pops.includes('${c}'))`), `${c} has a transit seller`);
assert.ok(ev(`isSub('${c}','syd')&&isSub('${c}','lax')`), `${c} is an island`);
}
// only islands with a working exchange today get one
assert.deepEqual(isl.filter(c => ev(`!!CITY['${c}'].ix`)), ['hnl', 'gum', 'hir', 'nou', 'suv']);
assert.equal(ev(`NETS.filter(n=>Array.isArray(n.ix)&&n.ix.some(c=>CITY[c]&&!CITY[c].ix&&${JSON.stringify(isl)}.includes(c))).length`), 0);
// every new network is reachable through a Tier 1, so Tier 1 players keep their reach
assert.equal(ev(`NETS.filter(n=>n.type!=='t1'&&n.pops.every(c=>${JSON.stringify(isl)}.includes(c)||['tok','syd','lax'].includes(c))&&n.pops.some(c=>${JSON.stringify(isl)}.includes(c))&&!(n.up||[]).some(u=>NET[u].type==='t1')).map(n=>n.id).join()`), '');
// a wave across the whole ocean carries far less than the same trip broken at the islands
const hop = (path) => ev(`Math.min(...${JSON.stringify(path)}.slice(1).map((c,i)=>Math.max(...cablesFor(${JSON.stringify(path)}[i],c).map(p=>subCarrier(p.km)))))`);
const direct = (a, b) => ev(`Math.max(...cablesFor('${a}','${b}').map(p=>subCarrier(p.km)))`);
assert.equal(direct('sjc', 'syd'), 400);
assert.equal(hop(['sjc', 'hnl', 'suv', 'syd']), 1600, 'California to Sydney via Hawaii and Fiji');
assert.equal(direct('akl', 'sea'), 400);
assert.equal(hop(['akl', 'suv', 'hnl', 'sea']), 1600);
assert.equal(direct('lax', 'hkg'), 400);
assert.ok(hop(['lax', 'hnl', 'gum', 'hkg']) >= 1200, 'Hong Kong via Hawaii and Guam');
assert.equal(direct('scl', 'syd'), 400);
assert.ok(hop(['scl', 'ppt', 'syd']) >= 1200, 'South America to Oceania via Tahiti');
// in play: 1.6T waves hop by hop from Los Angeles to Sydney
ev("for(const c of ['lax','hnl','suv','syd']){ACT.buildPop({city:c});S.pops[c].rgen=3;}");
const wave = (a, b, via) => ev(`UI.via='${via}';UI.route='same';openLinkModal('${a}','${b}');ACT.buildLink({tier:4});closeModal();S.links.length`);
assert.match(ev("subWaveWhy(4,cablesFor('lax','syd').concat(cablesFor('sjc','syd'))[0].km,true)"), /per carrier/, 'no 1.6T straight across');
const n0 = ev('S.links.length');
wave('lax', 'hnl', 'seaus'); wave('hnl', 'suv', 'scx'); wave('suv', 'syd', 'scxn');
assert.equal(ev('S.links.length'), n0 + 3);
ev('compute()');
assert.equal(ev("fastPath('lax','syd',1600)"), true);
assert.equal(ev("fastPath('lax','syd',3200)"), false);
// the Stepping Stones scenario starts in Honolulu with 1.6T gear
ev("ACT.startScn({id:'pac',sure:1})");
assert.equal(ev('S.scn.id'), 'pac');
assert.ok(ev('!!S.pops.hnl') && ev('S.lvl') >= 4);
assert.equal(ev('scnProg().items.length'), 3);
ev('cam.z=0.5;draw(0);cam.z=2;draw(0)');
assert.deepEqual(errors, []);
});