Add DKNOG in Copenhagen to the conference calendar
This commit is contained in:
parent
cfb5fb5f8e
commit
3ba35a8399
3 changed files with 18 additions and 1 deletions
|
|
@ -6,6 +6,8 @@ All notable changes to this project are documented here. The project follows
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
- DKNOG in Copenhagen joins the conference calendar every March.
|
||||
|
||||
## [1.26.1] — 2026-10-25
|
||||
|
||||
- Subsea cables no longer disappear when you zoom in on the map (#49).
|
||||
|
|
|
|||
|
|
@ -1385,7 +1385,7 @@ function beginGame(nm,city,o={}){if(needPitch()&&!UI.pitched){UI.pendGame=[nm,ci
|
|||
toast(S.scn?`<b>${esc(S.scn.name)}</b><br>${esc(o.scn.goal||tr('Serve as much traffic as you can in one year.'))} ${tr('You have {n} days.',{n:S.scn.days})}`:S.mode==='sandbox'?tr('<b>Sandbox mode</b><br>A billion dollars, every unlock, and nothing ever breaks. Build the internet you always wanted.'):tr('<b>Welcome, {name}!</b><br>The RIPE NCC assigned you AS{asn}. Your first router is humming in {city}.',{name:esc(nm),asn:S.asn,city:CITY[city].name}),'goal');
|
||||
renderAll();save();if(!S.scn&&S.mode!=='sandbox')tutorialStart();}
|
||||
/* ---------- conference season ---------- */
|
||||
const CONFS=[{n:'NANOG',c:'chi',m:1},{n:'APRICOT',c:'sin',m:1},{n:'Peering Days',c:'waw',m:2},{n:'UKNOF',c:'lon',m:3},{n:'MENOG',c:'dxb',m:3},{n:'NZNOG',c:'akl',m:3},{n:'RIPE',c:'ams',m:4},{n:'NANOG',c:'sea',m:5},{n:'IX Forum',c:'tok',m:6},{n:'AfPIF',c:'nbo',m:7},{n:'AusNOG',c:'syd',m:8},{n:'NLNOG Day',c:'ams',m:8},{n:'LACNOG',c:'sao',m:9},{n:'NANOG',c:'ash',m:9},{n:'DENOG',c:'fra',m:10},{n:'RIPE',c:'ber',m:10},{n:'PTT Forum',c:'sao',m:11}];
|
||||
const CONFS=[{n:'NANOG',c:'chi',m:1},{n:'APRICOT',c:'sin',m:1},{n:'Peering Days',c:'waw',m:2},{n:'DKNOG',c:'cph',m:2},{n:'UKNOF',c:'lon',m:3},{n:'MENOG',c:'dxb',m:3},{n:'NZNOG',c:'akl',m:3},{n:'RIPE',c:'ams',m:4},{n:'NANOG',c:'sea',m:5},{n:'IX Forum',c:'tok',m:6},{n:'AfPIF',c:'nbo',m:7},{n:'AusNOG',c:'syd',m:8},{n:'NLNOG Day',c:'ams',m:8},{n:'LACNOG',c:'sao',m:9},{n:'NANOG',c:'ash',m:9},{n:'DENOG',c:'fra',m:10},{n:'RIPE',c:'ber',m:10},{n:'PTT Forum',c:'sao',m:11}];
|
||||
const CONF_COST=8000,CONF_DAYS=45;
|
||||
const confDay=(cf,y)=>y*360+cf.m*30+9;
|
||||
function confKey(cf,y){return cf.n+'@'+cf.c+'@'+y;}
|
||||
|
|
|
|||
|
|
@ -333,3 +333,18 @@ test('Flood Season: attacks keep coming, grow, and only count when service held'
|
|||
assert.ok(ev('!!S.scn.done'), 'the goal completes');
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
test('DKNOG in Copenhagen is on the conference calendar', () => {
|
||||
const { ev, errors } = load();
|
||||
ev("ACT.start({});S.cash=1e9;for(const g of GOALS)S.done[g.id]=0");
|
||||
const cf = JSON.parse(ev("JSON.stringify(CONFS.find(c=>c.n==='DKNOG'))"));
|
||||
assert.equal(cf.c, 'cph');
|
||||
assert.equal(ev(`MONTHS[${cf.m}]`), 'Mar', 'held in March, like the real one');
|
||||
ev(`S.day=confDay(CONFS.find(c=>c.n==='DKNOG'),0)-20;ACT.leftTab({t:'deals'})`);
|
||||
assert.match(ev("document.body.textContent"), /DKNOG/);
|
||||
const key = ev("upcomingConfs(30).find(c=>c.n==='DKNOG').key");
|
||||
ev(`ACT.confGo({key:'${key}'})`);
|
||||
ev("for(let i=0;i<21;i++)dayTick()");
|
||||
assert.equal(ev("S.conf&&S.conf.reg"), 'EU', 'the glow helps with European peers');
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue