From c145377416c2ad2ecd4db4772fb5eebe717c972a Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Nov 2026 00:25:21 +0000 Subject: [PATCH 1/4] Seasons: Sunset Week off, so the Thanksgiving scene runs until the holiday look SUNSET_WEEK is now [] (it ran Nov 19 to 23). Fall and its Thanksgiving turkey show through Thanksgiving, then the holiday look starts on Nov 27 as before. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016ZY4GXaPfL98Rda8VC6d8Y --- e63334287a3deaa3/seasons.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e63334287a3deaa3/seasons.js b/e63334287a3deaa3/seasons.js index 7bf20677..177159b0 100644 --- a/e63334287a3deaa3/seasons.js +++ b/e63334287a3deaa3/seasons.js @@ -43,7 +43,8 @@ // SUNSET WEEK: from the first date to the second, both included, [year, month, day] on the viewer's own clock, the // sunset look takes the place of fall (only on days that would be fall). Change the dates to move or extend it; // make it [] to remove it. After the last date this is never used. - var SUNSET_WEEK=[[2026,11,19],[2026,11,23]]; + // Off for now: fall's Thanksgiving scene (Turkey Week) runs to Thanksgiving, then the holiday look takes over. + var SUNSET_WEEK=[]; function sunsetWeek(d){ if(SUNSET_WEEK.length<2)return false; From 3a43d5bb027b65f330bf684315bc3ebe0e602ae6 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Nov 2026 00:25:21 +0000 Subject: [PATCH 2/4] Putterby: fix gates crushing balls off the course, daily and final scorecards, phone HUD - Sliding gates stop a ball's width short of every rail (gateHitsWall in prepHole), and collide handles moving parts before walls, so a resting ball is never pushed through a rail and charged an out-of-bounds stroke (Gatekeepers, Grand Tour and daily holes). - Daily hole: Card shows the daily hole, and the result card can't be closed by accident. - End-of-round cards stay open when Card is pressed. - Online: "You win!" only when you beat at least one other full card. - HUD: hole name on its own line, shorter hole number on phones. - Test hook: ghost putts use the real clock; loop exits relink on the right hole. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016ZY4GXaPfL98Rda8VC6d8Y --- e63334287a3deaa3/putterby/index.html | 105 +++++++++++++++++---------- 1 file changed, 68 insertions(+), 37 deletions(-) diff --git a/e63334287a3deaa3/putterby/index.html b/e63334287a3deaa3/putterby/index.html index 5533ee5b..df44a7d6 100644 --- a/e63334287a3deaa3/putterby/index.html +++ b/e63334287a3deaa3/putterby/index.html @@ -50,7 +50,7 @@ .pill{background:rgba(255,251,242,.94);border-radius:16px;box-shadow:0 4px 14px rgba(20,40,30,.18);padding:8px 14px} #holeBox{position:absolute;left:calc(12px + env(safe-area-inset-left,0px));top:calc(12px + env(safe-area-inset-top,0px));max-width:calc(100% - 190px)} #holeBox b{display:block;font-family:var(--f-d);font-weight:400;font-size:20px;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} -#holeBox span{font-weight:800;font-size:13px;color:var(--ink-2)} +#holeBox span{display:block;font-weight:800;font-size:13px;color:var(--ink-2);white-space:nowrap} #holeBox span em{font-style:normal;color:var(--ink)} #clock{position:absolute;left:50%;top:calc(12px + env(safe-area-inset-top,0px));transform:translateX(-50%);font-family:var(--f-d);font-size:18px;padding:6px 14px} #clock.low{color:#c2331f} @@ -391,12 +391,27 @@

Scorecard

for(const w of src.W||[])H.W.push({ax:w[0],az:w[1],bx:w[2],bz:w[3],ya:w[4]+RAIL_H,yb:w[4]+RAIL_H,base:GROUND_Y,t:RAIL_T,rail:1}); for(const b of src.B||[])H.B.push({x:b[0],z:b[1],r:b[2],y:surfAt(H,b[0],b[1]),flash:0}); for(const m of src.M||[])H.M.push(Object.assign({},m)); + // A sliding gate stops a ball's width (plus a little) short of every rail, so it can never crush a ball through + // one and off the course. Worked out from the hole data alone, so every player's gates still match. + for(const m of H.M)if(m.k==='slide'){while(m.amp>0.05&&gateHitsWall(H,m,m.amp))m.amp=Math.round((m.amp-0.01)*100)/100} for(const l of src.L||[]){const y=surfAt(H,l.x,l.z);H.L.push(Object.assign({},l,{lx:l.dz,lz:-l.dx,y}))} let x0=1e9,x1=-1e9,z0=1e9,z1=-1e9;for(const p of H.P){x0=Math.min(x0,p.x0);x1=Math.max(x1,p.x1);z0=Math.min(z0,p.z0);z1=Math.max(z1,p.z1)} H.bx0=x0;H.bx1=x1;H.bz0=z0;H.bz1=z1;H.cx=(x0+x1)/2;H.cz=(z0+z1)/2; H.cupY=surfAt(H,H.cup[0],H.cup[1]);H.teeY=surfAt(H,H.tee[0],H.tee[1]); return H; } +function gateHitsWall(H,m,amp){ + const gap=2*R+0.03; + for(const s of [-1,1]){ + const cx=m.x+m.ax*amp*s,cz=m.z+m.az*amp*s; + for(const w of H.W){ + if(Math.max(w.ya,w.yb)<=m.y0)continue; + const hx=m.w/2+gap+w.t/2,hz=m.l/2+gap+w.t/2,L=Math.hypot(w.bx-w.ax,w.bz-w.az),n=Math.max(1,Math.ceil(L/0.04)); + for(let i=0;i<=n;i++){const x=w.ax+(w.bx-w.ax)*i/n,z=w.az+(w.bz-w.az)*i/n;if(Math.abs(x-cx)Scorecard } return bp?{top:best,p:bp}:null; } +// Moving parts first and walls last, so a rail always wins: a gate that sweeps up to a rail squeezes the ball +// along it instead of pushing it through and off the course. A ball pinned between a moving part and a wall can't +// leave faster than it came in (or 0.6 m/s), so a squeeze never fires it across the hole. function collide(H,b,t){ - for(const w of H.W){ - const ex=w.bx-w.ax,ez=w.bz-w.az,L2=ex*ex+ez*ez;let u=L2>0?((b.x-w.ax)*ex+(b.z-w.az)*ez)/L2:0;u=clamp(u,0,1); - const px=w.ax+ex*u,pz=w.az+ez*u,dx=b.x-px,dz=b.z-pz,d2=dx*dx+dz*dz,rr=R+w.t/2; - if(d2>=rr*rr)continue; - const top=w.ya+(w.yb-w.ya)*u;if(b.y-R>=top||b.y+R<=w.base)continue; - const d=Math.sqrt(d2)||1e-6,nx=d2>0?dx/d:-ez/Math.sqrt(L2),nz=d2>0?dz/d:ex/Math.sqrt(L2); - b.x=px+nx*rr;b.z=pz+nz*rr;bounce(b,nx,nz,0.72,0,0); + const vx0=b.vx,vz0=b.vz;let moved=false; + for(const m of H.M){ + if(b.y-R>m.y0+m.hgt||b.y+R0?dx/d:-s.sa,nz=d2>0?dz/d:s.ca;b.x=px+nx*rr;b.z=pz+nz*rr; + const ox=px-m.x,oz=pz-m.z;bounce(b,nx,nz,0.6,-s.w*oz,s.w*ox);moved=true} + } } for(const q of H.B){ const dx=b.x-q.x,dz=b.z-q.z,d2=dx*dx+dz*dz,rr=R+q.r; @@ -470,23 +493,21 @@

Scorecard

const out=b.vx*nx+b.vz*nz;if(vn<0&&out<2.4){b.vx+=nx*(2.4-out);b.vz+=nz*(2.4-out)} if(vn<0){q.flash=1;b.bump=1} } - for(const m of H.M){ - if(b.y-R>m.y0+m.hgt||b.y+R0?dx/d:-s.sa,nz=d2>0?dz/d:s.ca;b.x=px+nx*rr;b.z=pz+nz*rr; - const ox=px-m.x,oz=pz-m.z;bounce(b,nx,nz,0.6,-s.w*oz,s.w*ox)} - } + let pinned=false; + for(const w of H.W){ + const ex=w.bx-w.ax,ez=w.bz-w.az,L2=ex*ex+ez*ez;let u=L2>0?((b.x-w.ax)*ex+(b.z-w.az)*ez)/L2:0;u=clamp(u,0,1); + const px=w.ax+ex*u,pz=w.az+ez*u,dx=b.x-px,dz=b.z-pz,d2=dx*dx+dz*dz,rr=R+w.t/2; + if(d2>=rr*rr)continue; + const top=w.ya+(w.yb-w.ya)*u;if(b.y-R>=top||b.y+R<=w.base)continue; + const d=Math.sqrt(d2)||1e-6,nx=d2>0?dx/d:-ez/Math.sqrt(L2),nz=d2>0?dz/d:ex/Math.sqrt(L2); + b.x=px+nx*rr;b.z=pz+nz*rr;bounce(b,nx,nz,0.72,0,0);if(moved)pinned=true; } + if(pinned){const sp=Math.hypot(b.vx,b.vz),sp0=Math.hypot(vx0,vz0);if(sp>sp0&&sp>0){const k=Math.max(sp0,0.6)/sp;if(k<1){b.vx*=k;b.vz*=k}}} } // One physics step. t: the shared clock in seconds (for moving parts). Sets b.event to 'cup', 'water' or 'out'. function simStep(H,b,dt,t){ if(b.mode==='cup'){b.ct+=dt;const k=Math.min(1,b.ct/0.22);b.x=lerp(b.x,H.cup[0],0.25);b.z=lerp(b.z,H.cup[1],0.25);b.y=H.cupY+R-0.28*k;return} - if(b.mode==='loop'){loopStep(b,dt);return} + if(b.mode==='loop'){loopStep(b,dt,H);return} if(b.lc>0)b.lc-=dt; if(b.ground&&b.piece){ const p=b.piece,k=1+p.gx*p.gx+p.gz*p.gz; @@ -525,19 +546,19 @@

Scorecard

if(b.ground&&sp<0.07&&pull0.2){b.vx=b.vz=0;b.rest=true}} else{b.restT=0;b.rest=false} } -function loopStep(b,dt){ +function loopStep(b,dt,H){ const L=b.L;let th=b.ls/L.R; b.lv+=(-GRAV*Math.sin(th)-Math.sign(b.lv)*0.05*GRAV)*dt;b.ls+=b.lv*dt;th=b.ls/L.R; const N=b.lv*b.lv/L.R+GRAV*Math.cos(th),f=clamp(th/(2*Math.PI),0,1),lat=b.lat0+L.w*f*f*(3-2*f); const al=L.R*Math.sin(th),up=L.R*(1-Math.cos(th)); b.x=L.x+L.dx*al+L.lx*lat;b.z=L.z+L.dz*al+L.lz*lat;b.y=L.y+R+up;b.rest=false;b.restT=0; - if(b.ls<=0){b.mode='roll';b.ground=true;b.piece=null;b.x=L.x+L.lx*b.lat0-L.dx*0.1;b.z=L.z+L.lz*b.lat0-L.dz*0.1;b.y=L.y+R;b.vx=L.dx*b.lv;b.vz=L.dz*b.lv;b.vy=0;b.lc=0.6;relink(b)} - else if(b.ls>=2*Math.PI*L.R){b.mode='roll';b.ground=true;b.piece=null;const la=b.lat0+L.w;b.x=L.x+L.lx*la+L.dx*0.14;b.z=L.z+L.lz*la+L.dz*0.14;b.y=L.y+R;b.vx=L.dx*b.lv;b.vz=L.dz*b.lv;b.vy=0;b.lc=0.6;relink(b)} + if(b.ls<=0){b.mode='roll';b.ground=true;b.piece=null;b.x=L.x+L.lx*b.lat0-L.dx*0.1;b.z=L.z+L.lz*b.lat0-L.dz*0.1;b.y=L.y+R;b.vx=L.dx*b.lv;b.vz=L.dz*b.lv;b.vy=0;b.lc=0.6;relink(b,H)} + else if(b.ls>=2*Math.PI*L.R){b.mode='roll';b.ground=true;b.piece=null;const la=b.lat0+L.w;b.x=L.x+L.lx*la+L.dx*0.14;b.z=L.z+L.lz*la+L.dz*0.14;b.y=L.y+R;b.vx=L.dx*b.lv;b.vz=L.dz*b.lv;b.vy=0;b.lc=0.6;relink(b,H)} else if(N<0&&th>Math.PI/2&&th<1.5*Math.PI){ // too slow at the top: it falls off the track b.mode='roll';b.ground=false;b.vx=L.dx*b.lv*Math.cos(th);b.vz=L.dz*b.lv*Math.cos(th);b.vy=b.lv*Math.sin(th);b.lc=1.2; } } -function relink(b){const f=floorAt(hole,b);if(f){b.piece=f.p;b.y=f.top+R}else b.ground=false} +function relink(b,H){const f=floorAt(H||hole,b);if(f){b.piece=f.p;b.y=f.top+R}else b.ground=false} // ===================================================================== // Drawing (three.js r128). Each hole is rebuilt when it starts: the @@ -732,10 +753,10 @@

Scorecard

function loadHole(H){hole=H;buildHole(H);ball=newBall(H);ball.piece=floorAt(H,ball)?floorAt(H,ball).p:null;G.strokes=0;G.lastShot={x:ball.x,y:ball.y,z:ball.z};G.state='aim'; cam.yaw=Math.atan2(H.cup[0]-H.tee[0],H.cup[1]-H.tee[1]);cam.tyaw=cam.yaw;cam.cy=cam.yaw;cam.over=false;$('bView').classList.remove('on');cam.target.set(ball.x,ball.y,ball.z);cam.userTurned=false; for(const e of ents.values())e.snaps.length=0;updateHud()} -function holeLabel(){return G.mode==='daily'?'Daily hole':'Hole '+(G.holeIdx+1)+' of '+HOLES} +function holeLabel(){return G.mode==='daily'?'Daily hole':'Hole '+(G.holeIdx+1)+(innerWidth<=480?'/':' of ')+HOLES} // short on phones so the box stays two lines function updateHud(){ - $('hName').textContent=holeLabel()+' · '+hole.n; - $('hInfo').innerHTML='Par '+hole.par+' · Shot '+Math.min(G.strokes+(G.state==='aim'?1:0),MAX_SHOTS+1)+''+(G.mode!=='daily'?' · '+relTotal():''); + $('hName').textContent=hole.n; + $('hInfo').innerHTML=(G.mode==='daily'?'':esc(holeLabel())+' · ')+'Par '+hole.par+' · Shot '+Math.min(G.strokes+(G.state==='aim'?1:0),MAX_SHOTS+1)+''+(G.mode!=='daily'?' · '+relTotal():''); } function relTotal(){let s=0,p=0;G.card.forEach((v,i)=>{if(v!=null){s+=v;p+=COURSE[i].par}});const d=s-p;return p?(d===0?'E':d>0?'+'+d:''+d):'E'} function scoreName(st,par){if(st===1)return'Hole in one!';const d=st-par;return d<=-3?'Albatross!':d===-2?'Eagle!':d===-1?'Birdie!':d===0?'Par':d===1?'Bogey':d===2?'Double bogey':(st>=PICKUP?'Picked up':'+'+d)} @@ -787,14 +808,15 @@

Scorecard

} // ---- daily ---- -function startDaily(){Net.leave();G.mode='daily';G.dkey=dayKey();loadHole(prepHole(dailyHole(G.dkey)));show(null);showHint(hintShown?'':'Drag back from your ball and let go to putt')} +function startDaily(){Net.leave();G.mode='daily';G.dailyRes=null;G.dkey=dayKey();loadHole(prepHole(dailyHole(G.dkey)));show(null);showHint(hintShown?'':'Drag back from your ball and let go to putt')} function dailyState(){const d=store.get('daily',null);return d&&typeof d==='object'?d:{}} function dailyDone(st){ const d=dailyState(),k=G.dkey;let first=false; if(d.k!==k){first=true;const streak=d.k===prevDay(k)?(d.n|0)+1:1;Object.assign(d,{k,first:st,best:st,n:streak});stat('max','dstreak',streak)} else d.best=Math.min(d.best||99,st); store.set('daily',d);renderDaily(); - setTimeout(()=>{if(G.mode!=='daily')return;showCard(true,{daily:true,first,st,d})},1600); + G.dailyRes={daily:true,first,st,d}; + setTimeout(()=>{if(G.mode!=='daily'||!G.dailyRes)return;G.state='over';showCard(true,G.dailyRes)},1600); } function renderDaily(){const d=dailyState(),k=dayKey();let t; if(d.k===k)t='Today’s hole: '+d.first+' (best '+d.best+') · streak '+(d.n|0)+' day'+((d.n|0)===1?'':'s'); @@ -825,9 +847,18 @@

Scorecard

$('scTable').innerHTML=h;return rows; } function showCard(final,o){ - o=o||{};G.cardOpen=true;G.userCard=!!o.user;const btns=$('cardBtns');btns.innerHTML=''; + o=o||{}; + // the daily hole has no nine-hole card: show its result once it's finished, or the hole so far before that + if(G.mode==='daily'&&!o.daily)o=G.dailyRes||{daily:true,live:true}; + G.cardOpen=true;G.userCard=!!o.user;const btns=$('cardBtns');btns.innerHTML=''; const mk=(t,cls,fn)=>{const b=document.createElement('button');b.type='button';b.className='btn '+cls;b.textContent=t;b.onclick=fn;btns.appendChild(b);return b}; - if(o.daily){ + if(o.daily&&o.live){ + const d=dailyState(),today=d.k===G.dkey; + $('cardTitle').textContent='Daily hole';$('cardSub').textContent='Daily hole'; + $('scTable').innerHTML='Daily holeParShotsTodayStreak'+esc(hole.n)+''+hole.par+''+G.strokes+''+(today?d.first:'–')+''+(d.n|0)+' day'+((d.n|0)===1?'':'s')+''; + $('cardNote').textContent=today?'You’ve already finished today’s hole; this round is for practice.':'Your first finish of the day is your score.'; + mk('Back to the hole','cta',hideCard); + }else if(o.daily){ $('cardTitle').textContent=scoreName(o.st,hole.par);$('cardSub').textContent='Daily hole'; $('scTable').innerHTML='Daily holeParTodayBest todayStreak'+esc(hole.n)+''+hole.par+''+o.d.first+''+o.d.best+''+(o.d.n|0)+' day'+((o.d.n|0)===1?'':'s')+''; $('cardNote').textContent=o.first?'Your first finish today counts. Come back tomorrow for a new hole.':'Only your first finish of the day counts; this one was for practice.'; @@ -837,8 +868,8 @@

Scorecard

if(final){ const me=totals(G.card); if(G.mode==='online'){ - const full=rows.filter(r=>r.k===HOLES),win=full.length?Math.min(...full.map(r=>r.s)):0,mine=me.k===HOLES&&me.s===win; - $('cardTitle').textContent=mine?'You win!':full.length?'Round over':'Round over'; + const full=rows.filter(r=>r.k===HOLES),win=full.length?Math.min(...full.map(r=>r.s)):0,mine=full.length>=2&&me.k===HOLES&&me.s===win; + $('cardTitle').textContent=mine?'You win!':'Round over'; $('cardNote').textContent=full.length?('Lowest total: '+win+'. '+(rows.length>1?'Players who joined part way through aren’t ranked.':'')):''; if(G.host)mk('Play again','cta',()=>{hideCard();startRound()});else mk('Waiting for the host…','ghost',()=>{}).disabled=true; mk('Leave','ghost',toMenu); @@ -915,7 +946,7 @@

Scorecard

addEventListener('blur',()=>{for(const k in keys)keys[k]=false}); function toggleView(){cam.over=!cam.over;$('bView').classList.toggle('on',cam.over);if(cam.over&&drag&&drag.aim)cancelAim()} function toggleMenuConfirm(){if(G.mode==='online'){if(confirm('Leave this room?'))toMenu()}else toMenu()} -$('bView').onclick=toggleView;$('bCard').onclick=()=>{if(G.cardOpen)hideCard();else showCard(false,{user:1})};$('bMenu').onclick=toggleMenuConfirm; +$('bView').onclick=toggleView;$('bCard').onclick=()=>{if(G.cardOpen){if(G.state!=='over')hideCard()}else showCard(false,{user:1})};$('bMenu').onclick=toggleMenuConfirm; function updateCamera(dt){ if(keys.ArrowLeft||keys.KeyA){cam.yaw+=1.8*dt;cam.tyaw=cam.yaw;cam.userTurned=true} @@ -1196,7 +1227,7 @@

Scorecard

if(G.state==='done'){const w=participants().filter(p=>p.r===rs.id&&p.hd{if(!document.hidden||!Net.refs)return;try{hostTick();if(performance.now()-Net.hbT>2000)Net.upd({})}catch(err){console.error(err)}},1000); @@ -1230,8 +1261,8 @@

Scorecard

advance(s){G.noRender=true;try{const n=Math.round(s/DT);for(let i=0;i10)break}return{x:b.x,y:b.y,z:b.z,ev,mode:b.mode,rest:b.rest}}, + trial(H,from,dir,p,secs){const t0=clockT(),b=newBall(H);Object.assign(b,from||{});const f=floorAt(H,b);if(f){b.piece=f.p;b.y=f.top+R}b.vx=Math.sin(dir)*VMAX*p;b.vz=Math.cos(dir)*VMAX*p;b.rest=false;b.restT=0;let ev=''; + for(let i=0;i<(secs||25)/DT;i++){b.event='';simStep(H,b,DT,t0+i*DT);if(b.event){ev=b.event;break}if(b.rest&&i>10)break}return{x:b.x,y:b.y,z:b.z,ev,mode:b.mode,rest:b.rest}}, autoPutt(){const H=hole,from={x:ball.x,z:ball.z,y:ball.y};let best=null; for(let a=0;a<72;a++)for(let p=0.1;p<=1.001;p+=0.06){const r=this.trial(H,from,a/72*Math.PI*2,p,15);if(r.ev==='water'||r.ev==='out')continue;const d=r.ev==='cup'?-1:Math.hypot(r.x-H.cup[0],r.z-H.cup[1]);if(!best||d Date: Wed, 25 Nov 2026 00:25:21 +0000 Subject: [PATCH 3/4] Aisles: leaders can rename and customize (tag, colour, emblem, motto); What's new 1.51 and 1.51.1 Customize in the Aisle window changes the name, tag and colour, and adds an emblem (index into EMB, shown in the tag) and a motto (mo). Same checks as starting an Aisle. Records keep em and mo only when set, so older records read as before. README updated for Putterby, Aisles and Sunset Week. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016ZY4GXaPfL98Rda8VC6d8Y --- README.md | 6 +- e63334287a3deaa3/aisles.js | 128 +++++++++++++++++++++++++++--------- e63334287a3deaa3/news-es.js | 11 ++++ e63334287a3deaa3/news.js | 13 ++++ 4 files changed, 124 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 320d6643..2cb86339 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the - `e63334287a3deaa3/tumble-trials/`: Tumble Trials (Back Room), a knockout party show for up to 16 players (Three.js, Firebase Realtime Database rooms under `rooms/ko-…`, same project and rules as Rumble Karts; Quick match uses `rooms/ko-pub-1` to `ko-pub-4`; invite links go through the home page as `#ko-`). Every show, online or solo, starts with at least 16 contestants (`FIELD`): bots take the places players leave, so a room of 3 plays with 13 bots and a solo show is you and 15 bots; a party launch (party.js's room `p` + 6 characters, `partyRoom`) is the exception: the show is only the party's people (`set.bots` 0, no `bm`), the lobby's bot line says "No bots in party games", and a party of one gets a one-round show on their own; the host's Players setting only caps how many people play. A show is two to four rounds and a final: races (the first few across the line qualify; falling in the slime puts you back at the last checkpoint), survivals (no respawns; whoever is still up when the clock runs out or when only the qualifying number are left goes through) and a final for the crown. Two rounds come before the final in a Short show, three in a Normal one, four in a Long one (one fewer below 10 contestants, which can no longer happen at the start). `planShow` makes the plan from the show's seed so that shows differ: the order of races and survivals (never three of a kind running, never all one kind, so a show can open with a survival), how sharply each round cuts the field (each round gets a random weight, so one show goes 16→13→8→5 and another 16→9→6→4), whether 4, 5 or 6 reach the final, and which rounds are used; rounds the show before used come last in the draw, so a show only repeats one when it has run out of fresh ones. A round always sends on the number it promised: if fewer made it (a race that ran out of time, or several falling in the same moment of a survival), the places left go to whoever got furthest in a race or was knocked out last in a survival, and never fewer than two go on. `nextRound` follows who actually came through; if players leaving means no more are left than the final was planned for, the show goes straight to the final rather than play a round that could knock nobody out. A show can only start with one contestant in practice. Levels are built in code by the `build` functions in `LEVELS` with the `B` helpers (boxes, cylinders and spheres that are both the mesh and the collider; the meshes are the hitboxes, so what you see is what hits you): 23 rounds, only ever added at the end so the number the host sends for a round never changes: Whirligig Way, Teeter Tide, Gatecrash Gauntlet, Springboard Skyway, Swingset Straits, Piston Parade, Roly-Poly Rise, Log Jam Lane, Sink or Skip, Belt Bedlam, Blowhard Bridge, Going Up (lifts up a tower, with blocks at the side as the quick way for a good jumper), Barrel Roll Row (bridges that are turning barrels) and Ferry Frenzy (ferries that shuttle between docks, and two that meet mid-river) are races; Whirlwind Dish, Gap Rush, Colour Call, Bowled Over and Roller Rink (a roller chases everyone round a ring, faster all the time; the view turns with you, `L.orbit`) are survivals; Honeycomb Havoc, Last Spin, High Tide Hill and Crown Dash are finals. Crown Dash is a final marked `dash`: it is played like a race (`mechOf`: checkpoints, respawns) and the first bean to touch the crown as it dips wins, or whoever got furthest if the clock runs out; on Whirlwind Dish and Last Spin the low beam (0.08 to 0.58 m up) has to be jumped, and the high beam's underside (`HIGH_BEAM_Y`, 1.95 m) is well above a standing bean (1.6 m), so you can stand, run or dive under it but not jump into it; the Warm-up Yard is the lobby and menu backdrop and the Crown Stage the podium. Every moving obstacle's position is a function of the round clock (seconds since GO, from the server time offset) and the round's seed, so all players see the same hammers and walls without sending them: a level calls `vary(seed)` to shift the clock of every moving piece it builds (`Lvl.to`), or adds its own shift where bots read the timing too (stones, fans, lifts, ferries), and the sweepers take a seeded start angle and direction, so a round is not the same twice. Who stands where on the start grid is shuffled from the same seed; the seesaws react to weight, so the host runs them and sends their angles. Each player writes only their own node `rooms/ko-/players/`, because the shared rules expect `n, c, x, z, h, ts` there and refuse other paths for new prefixes: position and motion (`y`, `m`), look (`lk`: face, pattern, pattern colour), `rd` ready, `k` the round the position belongs to, `fin`/`out` ("show:round:ms" when you cross the line or drop out), `tt` the honeycomb tiles you touched, `gr`/`fr` grabbing and breaking free. The host (newest host number `he`, else whoever has been in the room longest, chosen only after the room has loaded) publishes the show as JSON in its own `rs` (phase, plan, roster, who qualified and who is out, in order; it goes out whole every time, so changes within a round are coalesced to at most 4 publishes a second, `Net.pubRS`/`flushRS`, while a new phase or round goes straight away; the shape of `rs` is unchanged), its bots in `bt`, seesaw angles in `sw`, and every touched tile in its `tt`; a tile vanishes a fixed delay after the earliest touch anyone reported. Guests treat the host's `rs` as untrusted: `sanitizeRS` rebuilds it field by field (known phases and levels, finite clamped numbers, ids of a safe shape, lists capped at 32, at most 24,000 characters) and drops it if anything doesn't fit, and names and colours from other players are escaped or validated before they reach the page. Guests also run the show on the host's clock (they measure the gap from the `ts` the host writes), and every browser rewrites its `ts` once a second even from a background tab, so a host who switches tabs isn't taken for gone. The host's browser runs the bots and decides qualification from the reports, so it isn't cheat-proof; if the host leaves, the next player carries on from the last show state and takes over the bots from where they were last seen (same traits, speed and checkpoint); a host that goes quiet without leaving is passed over after 4 s (`HOST_QUIET_MS`). `set.bots` is still sent (always 1) because pages from before the bots became permanent read it. A private room starts when everyone in it is ready (one player alone counts) or the host presses Start show; a public lobby starts 20 s after a second player arrives, or after 30 s with one. The physics is the game's own: a fixed 60 Hz step, a capsule of three spheres pushed out of boxes, cylinders and spheres, platforms that carry you, and knockback from the speed of whatever hit you. Bots follow each race's `path` of nodes and wait at `safe` nodes until the obstacles ahead will miss them; the same brain is the test autopilot. Node options a level can use: `w` width, `alt` side-by-side lanes a bot picks between, `xs` bounce pads (the node only counts once the pad has thrown the bot up), `safe` with `len` (how much of the way ahead has to be clear), `wait` (a test of the clock), `on` with `board` (a spot on a lift or ferry, walked to only while it can be boarded), `comp` (lean against a belt or a turning barrel), `near` (must be reached, not just passed). A bot that stops getting nearer its node hops, tries another line, backs off up the course and across, then goes back a node (`unstick`), and one whose jump will land short dives. No two bots are alike: skill comes with the roster, and nerve (how tight a gap it runs, how long it waits), pace and lane choice come from the show id and the bot's id, with a good or bad round from the round number (`botTraits`), so whoever takes the bots over works out the same ones. Keys are rebindable through `keybinds.js` (saved as `keybinds:tumble-trials`). On computers, clicking the game captures the mouse (Pointer Lock) and moving it turns the camera with no button held; a "Click to look" hint shows while it isn't captured, and the click that captures it doesn't also grab. Esc, the pause menu, the main menu, results and podium cards and the Controls panel let go of it (Esc in the online lobby only frees the mouse for the lobby panel; a second Esc opens the menu). A refused capture (Chrome refuses one within about a second of Esc) is only counted: after three in a row the hint goes and drag-to-look carries on, but every click still tries again. A two-finger trackpad scroll (or mouse wheel) also turns and tilts the camera; a pinch is swallowed so the page doesn't zoom. Sensitivity (Settings and the pause menu) scales mouse, scroll and touch look and is saved as `tumble-sens`, clamped to 0.2–3 (anything unreadable loads as 1). The camera comes in at once when a wall is between it and the bean and eases back out; static walls are found with a ray, and moving ones only if marked `camBlock` (Gap Rush's walls). In a race the count pill also says where you are running (`myPlace`), the intro card lists the show's running order, and being knocked out says where you finished. On touch screens the page adds `touch` to `body`: a stick, Jump, Dive and Grab buttons and drag-to-look, hidden while you watch or read a results card (`noctl`, `cardup`). Name, look, settings, best practice times and stats (shows, crowns, rounds qualified) are saved in the browser under `tumble-…`; nothing is stored online between shows. Parties can launch it (its row in `GAMES` in `party.js`). A test hook (`window.__ko`, with `advance(seconds)`) exists only when `navigator.webdriver` is set. **Closet (November 2026, hidden: captains only for now):** extra looks worn on top of the look everyone already has: 10 colours, 6 premium colours (gold, chrome, glow in the dark, see-through jelly, a slow rainbow shift, bubblegum with sprinkles), 9 patterns, 9 pairs of underpants (painted over the lower body as a clean, silly joke; the last pair is worn on the head instead), 19 hats, 9 face extras (an eye patch, dark shades and sports eye black among them), 43 costumes (the November 2026 wave added sports kits, pirates with eye patches, suits and mob-boss costume-party looks, robots, a wizard and a firefighter; a costume may be paint only, so a hat can be worn with it, and may paint over the face), 10 victory dances (danced instead of the cheer when you qualify from a race or win the crown), 6 fall screams made with Web Audio (heard as a bean drops towards the slime, quieter far away) and 5 knockout splashes (as well as the slime splash). `CLOSET_PUBLIC = false` and `closetOn()` near the top of the script (which asks `../captains.js`, with `?closet=1` as the test switch) decide whether a Closet button shows under the look on the menu card; for everyone else the menu, saved data, node fields and draw calls are as before. Everything is drawn by `closet.js` beside the page, fetched only when this player may open the Closet or a player in the room wears a kit; until then `CL` is null and every hook does what it always did. A kit is ten item numbers (the `no` of Tumble Trials' items in `../cosmetics.js`: colour, premium colour, pattern, underpants, hat, face, costume, dance, scream, splash), saved as `tumble-kit` and sent in the player's own node as `ck` (`'3.0.5.0.12.0.0.2.1.0'`, written only while one is worn; `kitOf` checks it strictly, a number `closet.js` doesn't know draws nothing, and older pages ignore the field); bots never wear one. Looks only: colours, patterns, underpants, face extras and a costume's paint go on the bean's existing skin canvas; a hat, the head undies or a costume's shape is one merged mesh per item shared by every bean (one more draw call, and it hides the Turkey Week hat, so none more while that is on; the propeller beanie, the fishbowl and the astronaut's bubble add one more); a premium colour gives the bean its own material, and the rainbow repaints its skin five times a second. The collider, size, speed and name tag are untouched: a costume is drawn around the same body and the face always shows. The Closet hides the menu and stands your bean in the yard beside its panel (below it when the screen is upright); drag to turn it, and choosing a dance, scream or splash plays it. The test hook adds `CL`, `closetOn`, `closetLoad`, `kitOf`, `kitStr` and `myKitNow`. **Turkey Week** (`../events.js`, November 15 to 26, 2026): every bean wears a pilgrim hat (hidden under the winner's crown): one shared hat geometry and material from `events.js` (`tkHat`), one extra draw call each. The game reads the one Turkey Week switch on the Back Room page (see `events.js` below) once, when it loads (off means no hats are made); it has no button of its own. **Spanish:** it loads `../lang.js` and its own words (and the Closet's) in `tumble-trials/es.js`; round and bot names stay English, the show's calls, round descriptions, lobby and results are translated. Text drawn or built in code uses `TRN()` (`TX` is the textures here); the results stamp shows `data-stamp-label` (the stamp's translation) while `data-stamp` keeps the English value the CSS keys on. Nothing translated is sent to the room. EN | ES switch in Settings and the pause card. - `e63334287a3deaa3/deepword/`: Deepword (Back Room), a daily "rarest answer" word game with a multiplayer mode, Blowfish Brawl (one canvas for the ocean, no libraries; Firebase Realtime Database, same project and rules as Rumble Karts, prefix `dw`; invite links go through the home page as `#dw-`; Quick match uses `rooms/dw-pub-1` to `dw-pub-4`; in the Parties list as `{ k: 'dw', … max: 12 }`, since `party.js` lists its own games). **Prompt bank:** `prompts.js` sets `window.DW_BANK`: `lists` (named answer lists, one string each: answers separated by `;`, spellings of one answer by `|`, and a commonness weight 1–5 after `:`, 5 being what most people say), `prompts` (`[category, question, list name or an inline list, optional filter]`, 866 of them, each with 20 or more hand-written answers; categories `geo`, `animals`, `food`, `words`, `pop`, `science`, `sports`, `life`), `words` (about 39,800 plain English words in five commonness tiers, built from the public-domain 12dicts and ENABLE word lists and ranked by how often each word appears in books and Wikipedia; the credits are in the comment at the top of the file, the list behind `'@words'` letter prompts), `labels` (lists the Brawl may turn into "