Copyright © 2022–2026 Beck Bjella. Browser adaptation © 2026 Waystone contributors. All application code and path data licensed AGPL-3.0-or-later.
Exact upstream source · Full license
JavaScript port of upstream movegen/board/move_list plus original path tables. No native server or WebAssembly. New browser interface, local bounded tactical rival, lessons, undo and saves. The original path tables are losslessly deduplicated into paths.json. Original Rust occupancy-key lookup is replaced with JavaScript traversal and intermediate-occupancy checks. Path masks, already-borrowed restrictions, start rows, legal drop zones, unchanged-board exclusion and goal behavior are retained. The port matches a native upstream Rust oracle across 400 positions and 84,856 legal moves. No upstream neural search, terminal protocol or native runtime is included. Equivalent paths share one resulting move; the preview displays one representative path. No automatic repetition draw. The practice rival checks immediate gate threats using a bounded heuristic.
This is the complete readable browser application source. Serve the eight files together at the same root; no build step or backend is required. Paths were extracted from the exact source revision linked above.
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="theme-color" content="#102b2a"><title>Waystone · Borrowed Steps</title><link rel="stylesheet" href="style.css"><script type="module" src="app.mjs"></script></head><body><main><header><div class="eyebrow"><span class="mark">◇</span> A SMALL TABLE FOR BIG IDEAS</div><h1>Waystone<span>Borrowed Steps</span></h1><p class="intro">No stone belongs to you.<br>Only the journey does.</p></header><section class="table"><div class="play"><div class="topline"><span id="turn">Preparing the table…</span><span id="counter">Move 1</span></div><button class="gate north" data-cell="37" aria-label="North gate">NORTH GATE <span>↑ South’s destination</span></button><div class="boardwrap"><div id="board" role="group" aria-label="Six by six game board"></div><svg id="route" viewBox="0 0 600 600" aria-hidden="true"></svg></div><button class="gate south" data-cell="36" aria-label="South gate">SOUTH GATE <span>North’s destination ↓</span></button><div class="legend"><span><i class="dot"></i> Your starting row</span><span><i class="dot target"></i> Possible destination</span></div></div><aside><div class="eyebrow">THE NEXT SMALL STEP</div><h2 id="step">Choose a stone.</h2><p id="message" role="status" aria-live="polite">Loading local rules…</p><div id="preview" hidden><div class="eyebrow">JOURNEY</div><p id="path"></p><button id="commit" class="primary">Make this move</button></div><div class="tools"><button id="cancel">Cancel selection</button><button id="hint">Suggest a journey</button><button id="undo">Undo turn</button></div><div class="divider"></div><label for="mode">Across the table</label><select id="mode"><option value="bot">You + local rival</option><option value="local">Two people, one screen</option></select><button id="new">New table</button><details id="practice"><summary>Three little lessons</summary><p class="small">Each lesson starts a fresh position. South moves first.</p><button data-study="0">01 · Find the gate</button><button data-study="1">02 · Borrow a rhythm</button><button data-study="2">03 · Lift & relocate</button></details><p class="small" id="save">Progress stays on this device.</p></aside></section><section class="below"><details id="guide"><summary>How a borrowed step works <span>+</span></summary><div class="rules"><p><b>1. Choose from your nearest occupied row.</b> South starts at the bottom; North starts at the top. Both players use the same twelve stones.</p><p><b>2. Walk the number.</b> A stone marked 1, 2 or 3 travels exactly that many orthogonal squares. It may turn corners, but cannot pass through a stone or reuse an edge during the journey.</p><p><b>3. Borrow, or lift.</b> Land exactly on a stone to continue with its number. Each stone may be borrowed once per journey. Or end there, lift that stone and place it on a permitted empty square. It cannot be placed behind your opponent’s nearest occupied row. A move must change the board.</p><p><b>4. Reach the far gate.</b> Finish your exact count one step past the opposite edge. The highlighted destinations include every legal chain; select one to preview its route. The local rival checks immediate threats, but is a practice opponent.</p><p><b>Controls.</b> Click or tap. Tab and Enter work on every control; arrow keys move focus across the grid. Escape cancels a selection. New table and lessons replace the current board. Undo restores the last human turn. Saves are automatic. No automatic repetition draw.</p></div></details><div class="journal"><div class="eyebrow">TRAVEL NOTES</div><p id="log">The board is quiet. Make the first journey.</p></div></section><footer>A browser adaptation of Gygès · <a href="source.html">Source & changes</a> · <a href="LICENSE.txt">AGPL-3.0-or-later</a><br>Rules engine and path tables © 2022–2026 Beck Bjella. Browser adaptation © 2026 Waystone contributors.</footer></main></body></html>
:root{color-scheme:dark;--bg:#102b2a;--ink:#f4efdf;--muted:#a4bab1;--gold:#edbd71;--mint:#9bd9bd}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 15% 15%,#244b40,transparent 52%),var(--bg);color:var(--ink);font-family:system-ui,sans-serif;line-height:1.55}main{max-width:1080px;margin:auto;padding:40px 28px}header{position:relative;padding:0 0 32px}h1{font-family:Georgia,serif;font-size:64px;font-weight:400;letter-spacing:-2px;line-height:1;margin:22px 0}h1 span{display:block;font-family:system-ui,sans-serif;font-size:15px;letter-spacing:.22em;text-transform:uppercase;margin-top:14px;color:var(--gold)}.eyebrow{font-size:10px;letter-spacing:.2em;font-weight:650;color:var(--muted)}.mark{font-size:22px;color:var(--gold);vertical-align:middle;margin-right:8px}.intro{position:absolute;right:5px;bottom:33px;color:var(--muted);font-family:Georgia,serif;font-style:italic;font-size:20px}.table{display:grid;grid-template-columns:minmax(300px,1fr) 300px;gap:34px;border-top:1px solid #ffffff20;padding-top:28px}.topline{display:flex;justify-content:space-between;font-size:13px;padding:0 4px 14px}#turn{color:var(--gold)}#counter{color:var(--muted)}button,select{font:inherit;color:inherit}button{cursor:pointer;border:1px solid #ffffff28;background:#ffffff07;border-radius:9px;padding:10px 13px;transition:background .15s,border-color .15s}button:hover{background:#ffffff14;border-color:var(--gold)}button:disabled{opacity:.35;cursor:default}button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.gate{width:100%;border-style:dashed;letter-spacing:.18em;font-size:10px;padding:9px;color:var(--muted);border-radius:9px;margin:0}.gate span{letter-spacing:0;font-size:10px;display:block;color:var(--muted);margin-top:2px}.gate.north{margin-bottom:10px}.gate.south{margin-top:10px}.boardwrap{position:relative;background:#071c1a;padding:10px;border-radius:14px;box-shadow:0 16px 42px #0004,inset 0 1px #ffffff10}#board{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;aspect-ratio:1}#board button{padding:0;position:relative;display:grid;place-items:center;border-radius:7px;border:1px solid transparent;background:#2b4940;min-width:0;font-size:12px;aspect-ratio:1}#board button:nth-child(12n+2),#board button:nth-child(12n+4),#board button:nth-child(12n+6),#board button:nth-child(12n+7),#board button:nth-child(12n+9),#board button:nth-child(12n+11){background:#355347}#board .coord{position:absolute;left:4px;top:1px;font-size:9px;color:#b2c5b35c}#board .stone{width:67%;height:67%;background:linear-gradient(145deg,#f2ddae,#b99c62);color:#333522;border:1px solid #ffebb9;border-radius:28%;box-shadow:1px 5px 0 #8f754c,2px 7px 9px #0006,inset 0 2px 2px #fff7;display:grid;place-items:center;font-family:Georgia,serif;font-size:clamp(20px,3vw,32px);z-index:1}#board .active{border-color:#99cfaf80}#board .selected{background:#769d74;border:2px solid var(--gold)}#board .destination::after{content:"";width:19%;height:19%;border:2px solid var(--mint);border-radius:50%;position:absolute;background:#9bd9bd38;box-shadow:0 0 12px #9bd9bd44}#board .destination:has(.stone){outline:2px solid var(--mint);outline-offset:-4px}#board .destination:has(.stone)::after{display:none}#board .chosen{box-shadow:inset 0 0 0 3px var(--gold)}.gate.destination{background:#9bd9bd22;border:2px solid var(--mint);color:var(--ink)}#route{position:absolute;inset:10px;width:calc(100% - 20px);height:calc(100% - 20px);pointer-events:none;z-index:2}#route polyline{stroke:var(--gold);stroke-width:5;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:7 9;filter:drop-shadow(0 2px 2px #0009)}.legend{display:flex;gap:20px;font-size:10px;color:var(--muted);justify-content:center;margin:18px 0}.dot{display:inline-block;width:8px;height:8px;border:1px solid #99cfaf;margin-right:4px}.dot.target{border-radius:50%;background:#9bd9bd44}aside{padding:10px 0}h2{font-family:Georgia,serif;font-size:31px;font-weight:400;line-height:1.2;margin:14px 0}#message{color:var(--muted);font-size:14px;min-height:70px}#preview{background:#ffffff08;border:1px solid #edbd713d;border-radius:9px;padding:13px;margin:15px 0}#path{font-size:12px;overflow-wrap:anywhere}.primary{width:100%;background:var(--gold);color:#1a3028;border-color:var(--gold);font-weight:650}.primary:hover{background:#ffcf83;color:#152d24}.tools{display:flex;flex-wrap:wrap;gap:7px}.tools button{font-size:12px}.divider{height:1px;background:#ffffff20;margin:23px 0}label{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}select{width:100%;padding:10px;background:#193c34;border:1px solid #ffffff30;border-radius:8px;font-size:13px}#new{width:100%;margin:9px 0 15px}summary{cursor:pointer;padding:13px 0;color:var(--ink);font-size:13px}.small,footer{color:var(--muted);font-size:11px}#practice button{display:block;width:100%;text-align:left;font-size:12px;margin:7px 0}#save{margin-top:19px}.below{border-top:1px solid #ffffff20;margin-top:20px;display:grid;grid-template-columns:1fr 300px;gap:34px}.rules{font-size:13px;color:var(--muted)}.rules b{color:var(--ink)}.journal{padding-top:18px}.journal p{font-size:12px;color:var(--muted);white-space:pre-line}footer{border-top:1px solid #ffffff16;padding-top:25px;margin-top:30px;font-size:10px}a{color:var(--gold)}[hidden]{display:none!important}@media(max-width:760px){main{padding:24px 16px}.intro{position:static;font-size:17px;margin:0}.table{grid-template-columns:1fr;gap:12px;padding-top:18px}header{padding-bottom:22px}h1{font-size:52px;margin:16px 0}h1 span{font-size:12px}.play{max-width:550px;width:100%;margin:auto}aside{padding-top:8px}#message{min-height:0}h2{font-size:27px;margin:10px 0}.below{grid-template-columns:1fr;gap:8px}#board .stone{font-size:clamp(20px,6vw,30px)}.legend{gap:14px;font-size:9px}.boardwrap{padding:7px}#route{inset:7px;width:calc(100% - 14px);height:calc(100% - 14px)}#board{gap:3px}.tools button{flex:1;padding:10px 7px}footer{line-height:1.8}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* AGPL-3.0-or-later; © 2026 Waystone contributors. */
import{initial,name,prepare,active,generate,apply,key,choose}from'./engine.mjs';
const $=id=>document.getElementById(id),store='waystone-v1';let tables,s,selected=null,lift=null,preview=null,moves=[],busy=false,epoch=0;
const fresh=mode=>({b:initial(),side:0,mode,history:[],notes:[],winner:null,lesson:null,assisted:false});
const titles=['Find the gate','Borrow a rhythm','Lift & relocate'];
function study(i){if(i===0){const b=Array(38).fill(0);for(let j=0;j<12;j++)b[24+j]=1+j%3;return b;}const b=Array(38).fill(0);const positions=i===0?[18,1,2,3,4,5,7,8,9,10,11,30]:[0,18,30,1,2,3,4,5,7,8,9,10];const counts=i===0?[3,1,2,1,2,3,1,2,3,1,2,3]:[3,2,1,1,2,3,1,2,3,1,2,3];positions.forEach((p,j)=>b[p]=counts[j]);if(i===2){b[30]=0;b[24]=1;}return b;}
function persist(){try{localStorage.setItem(store,JSON.stringify(s));$('save').textContent='Table saved on this device.';}catch{$('save').textContent='Storage unavailable; this table lasts until you close it.';}}
function resetSelection(){selected=null;lift=null;preview=null;}
function load(mode=s?.mode||'bot',lesson=null){epoch++;busy=false;s=fresh(mode);if(lesson!==null){s.b=study(lesson);s.lesson=lesson;s.mode='local';}resetSelection();refresh();persist();}
function stamp(){return JSON.parse(JSON.stringify({...s,history:[]}));}
function refresh(){
moves=s.winner===null?generate(s.b,s.side,tables):[];if(s.winner===null&&!moves.length)s.winner=1-s.side;
const who=s.side?'North':'South';$('turn').textContent=s.winner!==null?(s.winner?'North':'South')+' reaches the gate':who+(busy?' is considering…':' to move');$('counter').textContent='Move '+(s.notes.length+1);$('mode').value=s.mode;
let targets=[];if(selected!==null){targets=moves.filter(m=>m.start===selected);if(lift!==null)targets=targets.filter(m=>m.end===lift&&m.drop!==null);}
const dest=new Set(targets.map(m=>lift!==null?m.drop:m.end));
$('board').replaceChildren();for(let r=5;r>=0;r--)for(let c=0;c<6;c++){
const i=r*6+c,b=document.createElement('button');b.dataset.cell=i;b.setAttribute('aria-label',name(i)+(s.b[i]?', '+s.b[i]+' step'+(s.b[i]===1?'':'s'):', empty'));b.className=(r===active(s.b,s.side)&&s.b[i]?'active ':'')+(selected===i?'selected ':'')+(dest.has(i)?'destination ':'')+((preview&&(preview.end===i||preview.drop===i))?'chosen':'');
const coord=document.createElement('span');coord.className='coord';coord.textContent=name(i);b.append(coord);if(s.b[i]){const a=document.createElement('span');a.className='stone';a.textContent=s.b[i];b.append(a);}b.disabled=busy||s.winner!==null;b.onclick=()=>cell(i);b.onkeydown=e=>{const k={ArrowLeft:-1,ArrowRight:1,ArrowUp:6,ArrowDown:-6}[e.key];if(k){e.preventDefault();const n=i+k;if(n>=0&&n<36&&(Math.abs(k)===6||Math.floor(n/6)===r))document.querySelector('[data-cell="'+n+'"]').focus();}};$('board').append(b);
}
for(const n of [36,37]){const b=document.querySelector('.gate[data-cell="'+n+'"]');b.classList.toggle('destination',dest.has(n));b.disabled=busy||s.winner!==null;b.onclick=()=>cell(n);}
$('preview').hidden=!preview;$('route').replaceChildren();
if(preview){$('path').textContent=preview.path.map(name).join(' → ')+(preview.drop!==null?' · Lift '+s.b[preview.end]+' to '+name(preview.drop):'')+(s.assisted?' · suggested':'');const p=document.createElementNS('http://www.w3.org/2000/svg','polyline');p.setAttribute('points',preview.path.filter(x=>x<36).map(i=>[(i%6+.5)*100,(5.5-Math.floor(i/6))*100].join(',')).join(' '));$('route').append(p);}
$('step').textContent=s.winner!==null?'A journey complete.':preview?'Ready to travel.':lift!==null?'Set the lifted stone down.':selected!==null?'Follow the light.':'Choose a stone.';
$('message').textContent=s.winner!==null?((s.winner?'North':'South')+' wins in '+s.notes.length+' moves. Try a new table, another lesson, or undo to explore a different road.'):busy?'Your local rival is checking the gates.':preview?'The dotted line shows a legal route. Confirm to make the journey, or cancel to keep looking.':lift!==null?'Choose a highlighted empty square for the displaced stone. Your moving stone takes its place.':selected!==null?'Mint dots are reachable endings, including chained journeys. An outlined occupied stone can be lifted and relocated.':(s.lesson!==null?titles[s.lesson]+'. ':'')+'Choose a numbered stone in the outlined '+who.toLowerCase()+' row. Its number is its first walking distance.';
$('cancel').disabled=selected===null||busy;$('hint').disabled=busy||s.winner!==null;$('undo').disabled=!s.history.length||busy;$('commit').disabled=busy;$('log').textContent=s.notes.slice(-5).join('\n')||'The board is quiet. Make the first journey.';
}
function cell(i){if(busy||s.winner!==null)return;
if(selected!==null){const candidates=moves.filter(m=>m.start===selected);if(lift!==null){const m=candidates.find(m=>m.end===lift&&m.drop===i);if(m){preview=m;refresh();return;}}
else{const direct=candidates.find(m=>m.end===i&&m.drop===null);if(direct){preview=direct;refresh();return;}if(candidates.some(m=>m.end===i&&m.drop!==null)){lift=i;preview=null;refresh();return;}}}
if(moves.some(m=>m.start===i)){selected=i;lift=null;preview=null;refresh();}else{resetSelection();refresh();}}
function execute(m){const side=s.side;s.b=apply(s.b,m);s.notes.push((side?'North':'South')+': '+name(m.start)+' → '+name(m.end)+(m.drop!==null?' · lift to '+name(m.drop):'')+(m.bounces.length?' · '+m.bounces.length+' borrowed':''));if(m.end>=36)s.winner=side;s.side=1-side;resetSelection();persist();}
async function bot(){if(s.mode!=='bot'||s.side!==1||s.winner!==null)return;busy=true;refresh();const token=epoch;await new Promise(r=>setTimeout(r,300));if(token!==epoch)return;const m=choose(s.b,1,tables);if(m)execute(m);else s.winner=0;busy=false;refresh();persist();}
$('commit').onclick=()=>{if(!preview||busy)return;s.history.push(stamp());execute(preview);refresh();bot();};
$('cancel').onclick=()=>{resetSelection();refresh();};$('hint').onclick=()=>{const m=choose(s.b,s.side,tables,moves);if(m){s.assisted=true;selected=m.start;lift=m.drop!==null?m.end:null;preview=m;refresh();}};
$('undo').onclick=()=>{if(busy||!s.history.length)return;const history=s.history,p=history.pop();s={...p,history};resetSelection();refresh();persist();};
$('new').onclick=()=>load($('mode').value);$('mode').onchange=()=>load($('mode').value);document.querySelectorAll('[data-study]').forEach(b=>b.onclick=()=>load('local',Number(b.dataset.study)));document.addEventListener('keydown',e=>{if(e.key==='Escape'){resetSelection();refresh();}});
try{const response=await fetch('./paths.json');if(!response.ok)throw Error('Cannot load local paths');tables=prepare(await response.json());try{const old=JSON.parse(localStorage.getItem(store));if(old&&Array.isArray(old.b)&&old.b.length===38&&old.b.every(x=>Number.isInteger(x)&&x>=0&&x<=3)&&[0,1].includes(old.side)&&['bot','local'].includes(old.mode)&&Array.isArray(old.history)&&Array.isArray(old.notes))s=old;}catch{}if(!s)s=fresh('bot');refresh();await bot();}catch(e){$('step').textContent='The table could not open.';$('message').textContent='Please reload to retry the locally bundled rules. '+e.message;console.error(e);}
/* AGPL-3.0-or-later. Browser port of Beck Bjella's Gyges 2.0 move generator,
board updates and move decoding. Copyright 2022-2026 Beck Bjella.
Adapted October 30 2026: JS traversal of the original, locally bundled
path tables replaces Rust occupancy-key lookup. Representative paths added.
Original browser interface is licensed under the same terms. See source.html. */
export const initial=()=>[3,2,1,1,2,3,...Array(24).fill(0),3,2,1,1,2,3,0,0];
export const name=i=>i===36?'South gate':i===37?'North gate':'ABCDEF'[i%6]+(1+Math.floor(i/6));
export function prepare(data){return data.map(list=>Array.from({length:36},(_,i)=>list.filter(x=>x[0][0]===i).map(([p,m])=>({p,m:BigInt(m)}))));}
export function active(b,side){const a=[];for(let i=0;i<36;i++)if(b[i])a.push(Math.floor(i/6));return a.length?(side?Math.max(...a):Math.min(...a)):-1;}
export function generate(b,side,tables){
if(b[36]||b[37])return [];
const row=active(b,side),other=active(b,1-side),out=[];
if(row<0)return out;
const drops=[];for(let i=0;i<36;i++)if(!b[i]&&(side?Math.floor(i/6)>=other:Math.floor(i/6)<=other))drops.push(i);
for(let start=row*6;start<row*6+6;start++){
if(!b[start])continue;
const board=b.slice();board[start]=0;const ends=new Map(),pickups=new Map();
function walk(at,count,used,banned,route,bounces){
for(const {p,m}of tables[count-1][at]){
if(m&used)continue;
if(p.slice(1,-1).some(i=>board[i]))continue;
const end=p.at(-1),path=route.concat(p.slice(1));
if(board[end]){
if(banned.has(end))continue;
if(!pickups.has(end))pickups.set(end,{path,bounces:bounces.concat(end)});
const next=new Set(banned);next.add(end);
walk(end,board[end],used|m,next,path,bounces.concat(end));
}else if(end>=36){if(end===37-side&&!ends.has(end))ends.set(end,{path,bounces});}
else if(end!==start&&!ends.has(end))ends.set(end,{path,bounces});
}
}
walk(start,b[start],0n,new Set(),[start],[]);
for(const [end,path]of ends)out.push({start,end,drop:null,...path});
for(const [end,path]of pickups){
if(b[end]!==b[start])out.push({start,end,drop:start,...path});
for(const drop of drops)out.push({start,end,drop,...path});
}
}
return out;
}
export function apply(b,m){const a=b.slice(),piece=a[m.start],displaced=a[m.end];a[m.start]=0;a[m.end]=piece;if(m.drop!==null)a[m.drop]=displaced;return a;}
export const key=m=>[m.start,m.end,...(m.drop===null?[]:[m.drop])].join('|');
export function choose(b,side,tables,moves=generate(b,side,tables)){
const win=moves.find(m=>m.end>=36);if(win)return win;if(!moves.length)return null;
const scored=moves.map(m=>{const row=Math.floor(m.end/6);return {m,s:(side?5-row:row)*2+m.bounces.length*.3+(m.drop===null?.2:0)};}).sort((a,b)=>b.s-a.s);
// A bounded, local tactical rival. It sees immediate gate threats, not a deep search.
let best=null,score=-Infinity;
for(const {m,s}of scored.slice(0,28)){
const next=apply(b,m),replies=generate(next,1-side,tables),v=s-(replies.some(r=>r.end>=36)?10000:0)+Math.min(100,replies.length)*-.001;
if(v>score){score=v;best=m;}
}
return best;
}
[[[[0,6],"32"],[[0,1],"1"],[[0,36],"0"],[[1,0],"1"],[[1,7],"64"],[[1,2],"2"],[[1,36],"0"],[[2,1],"2"],[[2,8],"128"],[[2,3],"4"],[[2,36],"0"],[[3,2],"4"],[[3,9],"256"],[[3,4],"8"],[[3,36],"0"],[[4,3],"8"],[[4,10],"512"],[[4,5],"16"],[[4,36],"0"],[[5,4],"16"],[[5,11],"1024"],[[5,36],"0"],[[6,12],"65536"],[[6,7],"2048"],[[6,0],"32"],[[7,6],"2048"],[[7,13],"131072"],[[7,8],"4096"],[[7,1],"64"],[[8,7],"4096"],[[8,14],"262144"],[[8,9],"8192"],[[8,2],"128"],[[9,8],"8192"],[[9,15],"524288"],[[9,10],"16384"],[[9,3],"256"],[[10,9],"16384"],[[10,16],"1048576"],[[10,11],"32768"],[[10,4],"512"],[[11,10],"32768"],[[11,17],"2097152"],[[11,5],"1024"],[[12,18],"134217728"],[[12,13],"4194304"],[[12,6],"65536"],[[13,12],"4194304"],[[13,19],"268435456"],[[13,14],"8388608"],[[13,7],"131072"],[[14,13],"8388608"],[[14,20],"536870912"],[[14,15],"16777216"],[[14,8],"262144"],[[15,14],"16777216"],[[15,21],"1073741824"],[[15,16],"33554432"],[[15,9],"524288"],[[16,15],"33554432"],[[16,22],"2147483648"],[[16,17],"67108864"],[[16,10],"1048576"],[[17,16],"67108864"],[[17,23],"4294967296"],[[17,11],"2097152"],[[18,24],"274877906944"],[[18,19],"8589934592"],[[18,12],"134217728"],[[19,18],"8589934592"],[[19,25],"549755813888"],[[19,20],"17179869184"],[[19,13],"268435456"],[[20,19],"17179869184"],[[20,26],"1099511627776"],[[20,21],"34359738368"],[[20,14],"536870912"],[[21,20],"34359738368"],[[21,27],"2199023255552"],[[21,22],"68719476736"],[[21,15],"1073741824"],[[22,21],"68719476736"],[[22,28],"4398046511104"],[[22,23],"137438953472"],[[22,16],"2147483648"],[[23,22],"137438953472"],[[23,29],"8796093022208"],[[23,17],"4294967296"],[[24,30],"562949953421312"],[[24,25],"17592186044416"],[[24,18],"274877906944"],[[25,24],"17592186044416"],[[25,31],"1125899906842624"],[[25,26],"35184372088832"],[[25,19],"549755813888"],[[26,25],"35184372088832"],[[26,32],"2251799813685248"],[[26,27],"70368744177664"],[[26,20],"1099511627776"],[[27,26],"70368744177664"],[[27,33],"4503599627370496"],[[27,28],"140737488355328"],[[27,21],"2199023255552"],[[28,27],"140737488355328"],[[28,34],"9007199254740992"],[[28,29],"281474976710656"],[[28,22],"4398046511104"],[[29,28],"281474976710656"],[[29,35],"18014398509481984"],[[29,23],"8796093022208"],[[30,37],"0"],[[30,31],"36028797018963968"],[[30,24],"562949953421312"],[[31,30],"36028797018963968"],[[31,37],"0"],[[31,32],"72057594037927936"],[[31,25],"1125899906842624"],[[32,31],"72057594037927936"],[[32,37],"0"],[[32,33],"144115188075855872"],[[32,26],"2251799813685248"],[[33,32],"144115188075855872"],[[33,37],"0"],[[33,34],"288230376151711744"],[[33,27],"4503599627370496"],[[34,33],"288230376151711744"],[[34,37],"0"],[[34,35],"576460752303423488"],[[34,28],"9007199254740992"],[[35,34],"576460752303423488"],[[35,37],"0"],[[35,29],"18014398509481984"]],[[[0,6,12],"65568"],[[0,6,7],"2080"],[[0,1,7],"65"],[[0,1,2],"3"],[[0,1,36],"1"],[[1,0,6],"33"],[[1,7,6],"2112"],[[1,7,13],"131136"],[[1,7,8],"4160"],[[1,2,8],"130"],[[1,2,3],"6"],[[1,2,36],"2"],[[1,0,36],"1"],[[2,1,0],"3"],[[2,1,7],"66"],[[2,8,7],"4224"],[[2,8,14],"262272"],[[2,8,9],"8320"],[[2,3,9],"260"],[[2,3,4],"12"],[[2,3,36],"4"],[[2,1,36],"2"],[[3,2,1],"6"],[[3,2,8],"132"],[[3,9,8],"8448"],[[3,9,15],"524544"],[[3,9,10],"16640"],[[3,4,10],"520"],[[3,4,5],"24"],[[3,4,36],"8"],[[3,2,36],"4"],[[4,3,2],"12"],[[4,3,9],"264"],[[4,10,9],"16896"],[[4,10,16],"1049088"],[[4,10,11],"33280"],[[4,5,11],"1040"],[[4,5,36],"16"],[[4,3,36],"8"],[[5,4,3],"24"],[[5,4,10],"528"],[[5,11,10],"33792"],[[5,11,17],"2098176"],[[5,4,36],"16"],[[6,12,18],"134283264"],[[6,12,13],"4259840"],[[6,7,13],"133120"],[[6,7,8],"6144"],[[6,7,1],"2112"],[[6,0,1],"33"],[[6,0,36],"32"],[[7,6,12],"67584"],[[7,13,12],"4325376"],[[7,13,19],"268566528"],[[7,13,14],"8519680"],[[7,8,14],"266240"],[[7,8,9],"12288"],[[7,8,2],"4224"],[[7,1,2],"66"],[[7,1,36],"64"],[[7,1,0],"65"],[[7,6,0],"2080"],[[8,7,6],"6144"],[[8,7,13],"135168"],[[8,14,13],"8650752"],[[8,14,20],"537133056"],[[8,14,15],"17039360"],[[8,9,15],"532480"],[[8,9,10],"24576"],[[8,9,3],"8448"],[[8,2,3],"132"],[[8,2,36],"128"],[[8,2,1],"130"],[[8,7,1],"4160"],[[9,8,7],"12288"],[[9,8,14],"270336"],[[9,15,14],"17301504"],[[9,15,21],"1074266112"],[[9,15,16],"34078720"],[[9,10,16],"1064960"],[[9,10,11],"49152"],[[9,10,4],"16896"],[[9,3,4],"264"],[[9,3,36],"256"],[[9,3,2],"260"],[[9,8,2],"8320"],[[10,9,8],"24576"],[[10,9,15],"540672"],[[10,16,15],"34603008"],[[10,16,22],"2148532224"],[[10,16,17],"68157440"],[[10,11,17],"2129920"],[[10,11,5],"33792"],[[10,4,5],"528"],[[10,4,36],"512"],[[10,4,3],"520"],[[10,9,3],"16640"],[[11,10,9],"49152"],[[11,10,16],"1081344"],[[11,17,16],"69206016"],[[11,17,23],"4297064448"],[[11,5,36],"1024"],[[11,5,4],"1040"],[[11,10,4],"33280"],[[12,18,24],"275012124672"],[[12,18,19],"8724152320"],[[12,13,19],"272629760"],[[12,13,14],"12582912"],[[12,13,7],"4325376"],[[12,6,7],"67584"],[[12,6,0],"65568"],[[13,12,18],"138412032"],[[13,19,18],"8858370048"],[[13,19,25],"550024249344"],[[13,19,20],"17448304640"],[[13,14,20],"545259520"],[[13,14,15],"25165824"],[[13,14,8],"8650752"],[[13,7,8],"135168"],[[13,7,1],"131136"],[[13,7,6],"133120"],[[13,12,6],"4259840"],[[14,13,12],"12582912"],[[14,13,19],"276824064"],[[14,20,19],"17716740096"],[[14,20,26],"1100048498688"],[[14,20,21],"34896609280"],[[14,15,21],"1090519040"],[[14,15,16],"50331648"],[[14,15,9],"17301504"],[[14,8,9],"270336"],[[14,8,2],"262272"],[[14,8,7],"266240"],[[14,13,7],"8519680"],[[15,14,13],"25165824"],[[15,14,20],"553648128"],[[15,21,20],"35433480192"],[[15,21,27],"2200096997376"],[[15,21,22],"69793218560"],[[15,16,22],"2181038080"],[[15,16,17],"100663296"],[[15,16,10],"34603008"],[[15,9,10],"540672"],[[15,9,3],"524544"],[[15,9,8],"532480"],[[15,14,8],"17039360"],[[16,15,14],"50331648"],[[16,15,21],"1107296256"],[[16,22,21],"70866960384"],[[16,22,28],"4400193994752"],[[16,22,23],"139586437120"],[[16,17,23],"4362076160"],[[16,17,11],"69206016"],[[16,10,11],"1081344"],[[16,10,4],"1049088"],[[16,10,9],"1064960"],[[16,15,9],"34078720"],[[17,16,15],"100663296"],[[17,16,22],"2214592512"],[[17,23,22],"141733920768"],[[17,23,29],"8800387989504"],[[17,11,5],"2098176"],[[17,11,10],"2129920"],[[17,16,10],"68157440"],[[18,24,30],"563224831328256"],[[18,24,25],"17867063951360"],[[18,19,25],"558345748480"],[[18,19,20],"25769803776"],[[18,19,13],"8858370048"],[[18,12,13],"138412032"],[[18,12,6],"134283264"],[[19,18,24],"283467841536"],[[19,25,24],"18141941858304"],[[19,25,31],"1126449662656512"],[[19,25,26],"35734127902720"],[[19,20,26],"1116691496960"],[[19,20,21],"51539607552"],[[19,20,14],"17716740096"],[[19,13,14],"276824064"],[[19,13,7],"268566528"],[[19,13,12],"272629760"],[[19,18,12],"8724152320"],[[20,19,18],"25769803776"],[[20,19,25],"566935683072"],[[20,26,25],"36283883716608"],[[20,26,32],"2252899325313024"],[[20,26,27],"71468255805440"],[[20,21,27],"2233382993920"],[[20,21,22],"103079215104"],[[20,21,15],"35433480192"],[[20,14,15],"553648128"],[[20,14,8],"537133056"],[[20,14,13],"545259520"],[[20,19,13],"17448304640"],[[21,20,19],"51539607552"],[[21,20,26],"1133871366144"],[[21,27,26],"72567767433216"],[[21,27,33],"4505798650626048"],[[21,27,28],"142936511610880"],[[21,22,28],"4466765987840"],[[21,22,23],"206158430208"],[[21,22,16],"70866960384"],[[21,15,16],"1107296256"],[[21,15,9],"1074266112"],[[21,15,14],"1090519040"],[[21,20,14],"34896609280"],[[22,21,20],"103079215104"],[[22,21,27],"2267742732288"],[[22,28,27],"145135534866432"],[[22,28,34],"9011597301252096"],[[22,28,29],"285873023221760"],[[22,23,29],"8933531975680"],[[22,23,17],"141733920768"],[[22,16,17],"2214592512"],[[22,16,10],"2148532224"],[[22,16,15],"2181038080"],[[22,21,15],"69793218560"],[[23,22,21],"206158430208"],[[23,22,28],"4535485464576"],[[23,29,28],"290271069732864"],[[23,29,35],"18023194602504192"],[[23,17,11],"4297064448"],[[23,17,16],"4362076160"],[[23,22,16],"139586437120"],[[24,30,37],"562949953421312"],[[24,30,31],"36591746972385280"],[[24,25,31],"1143492092887040"],[[24,25,26],"52776558133248"],[[24,25,19],"18141941858304"],[[24,18,19],"283467841536"],[[24,18,12],"275012124672"],[[25,24,30],"580542139465728"],[[25,31,30],"37154696925806592"],[[25,31,37],"1125899906842624"],[[25,31,32],"73183493944770560"],[[25,26,32],"2286984185774080"],[[25,26,27],"105553116266496"],[[25,26,20],"36283883716608"],[[25,19,20],"566935683072"],[[25,19,13],"550024249344"],[[25,19,18],"558345748480"],[[25,24,18],"17867063951360"],[[26,25,24],"52776558133248"],[[26,25,31],"1161084278931456"],[[26,32,31],"74309393851613184"],[[26,32,37],"2251799813685248"],[[26,32,33],"146366987889541120"],[[26,27,33],"4573968371548160"],[[26,27,28],"211106232532992"],[[26,27,21],"72567767433216"],[[26,20,21],"1133871366144"],[[26,20,14],"1100048498688"],[[26,20,19],"1116691496960"],[[26,25,19],"35734127902720"],[[27,26,25],"105553116266496"],[[27,26,32],"2322168557862912"],[[27,33,32],"148618787703226368"],[[27,33,37],"4503599627370496"],[[27,33,34],"292733975779082240"],[[27,28,34],"9147936743096320"],[[27,28,29],"422212465065984"],[[27,28,22],"145135534866432"],[[27,21,22],"2267742732288"],[[27,21,15],"2200096997376"],[[27,21,20],"2233382993920"],[[27,26,20],"71468255805440"],[[28,27,26],"211106232532992"],[[28,27,33],"4644337115725824"],[[28,34,33],"297237575406452736"],[[28,34,37],"9007199254740992"],[[28,34,35],"585467951558164480"],[[28,29,35],"18295873486192640"],[[28,29,23],"290271069732864"],[[28,22,23],"4535485464576"],[[28,22,16],"4400193994752"],[[28,22,21],"4466765987840"],[[28,27,21],"142936511610880"],[[29,28,27],"422212465065984"],[[29,28,34],"9288674231451648"],[[29,35,34],"594475150812905472"],[[29,35,37],"18014398509481984"],[[29,23,17],"8800387989504"],[[29,23,22],"8933531975680"],[[29,28,22],"285873023221760"],[[30,31,37],"36028797018963968"],[[30,31,32],"108086391056891904"],[[30,31,25],"37154696925806592"],[[30,24,25],"580542139465728"],[[30,24,18],"563224831328256"],[[31,30,37],"36028797018963968"],[[31,32,37],"72057594037927936"],[[31,32,33],"216172782113783808"],[[31,32,26],"74309393851613184"],[[31,25,26],"1161084278931456"],[[31,25,19],"1126449662656512"],[[31,25,24],"1143492092887040"],[[31,30,24],"36591746972385280"],[[32,31,30],"108086391056891904"],[[32,31,37],"72057594037927936"],[[32,33,37],"144115188075855872"],[[32,33,34],"432345564227567616"],[[32,33,27],"148618787703226368"],[[32,26,27],"2322168557862912"],[[32,26,20],"2252899325313024"],[[32,26,25],"2286984185774080"],[[32,31,25],"73183493944770560"],[[33,32,31],"216172782113783808"],[[33,32,37],"144115188075855872"],[[33,34,37],"288230376151711744"],[[33,34,35],"864691128455135232"],[[33,34,28],"297237575406452736"],[[33,27,28],"4644337115725824"],[[33,27,21],"4505798650626048"],[[33,27,26],"4573968371548160"],[[33,32,26],"146366987889541120"],[[34,33,32],"432345564227567616"],[[34,33,37],"288230376151711744"],[[34,35,37],"576460752303423488"],[[34,35,29],"594475150812905472"],[[34,28,29],"9288674231451648"],[[34,28,22],"9011597301252096"],[[34,28,27],"9147936743096320"],[[34,33,27],"292733975779082240"],[[35,34,33],"864691128455135232"],[[35,34,37],"576460752303423488"],[[35,29,23],"18023194602504192"],[[35,29,28],"18295873486192640"],[[35,34,28],"585467951558164480"]],[[[0,6,12,18],"134283296"],[[0,1,2,3],"7"],[[0,6,12,13],"4259872"],[[0,6,7,13],"133152"],[[0,1,7,13],"131137"],[[0,6,7,8],"6176"],[[0,1,7,8],"4161"],[[0,1,2,8],"131"],[[0,1,2,36],"3"],[[0,1,7,6],"2113"],[[0,6,7,1],"2144"],[[1,7,13,19],"268566592"],[[1,2,3,4],"14"],[[1,0,6,12],"65569"],[[1,7,6,12],"67648"],[[1,7,13,12],"4325440"],[[1,7,13,14],"8519744"],[[1,7,8,14],"266304"],[[1,2,8,14],"262274"],[[1,7,8,9],"12352"],[[1,2,8,9],"8322"],[[1,2,3,9],"262"],[[1,2,3,36],"6"],[[1,7,6,0],"2144"],[[1,0,6,7],"2081"],[[1,2,8,7],"4226"],[[1,7,8,2],"4288"],[[2,8,14,20],"537133184"],[[2,3,4,5],"28"],[[2,1,0,6],"35"],[[2,1,7,6],"2114"],[[2,8,7,6],"6272"],[[2,1,7,13],"131138"],[[2,8,7,13],"135296"],[[2,8,14,13],"8650880"],[[2,8,14,15],"17039488"],[[2,8,9,15],"532608"],[[2,3,9,15],"524548"],[[2,8,9,10],"24704"],[[2,3,9,10],"16644"],[[2,3,4,10],"524"],[[2,3,4,36],"12"],[[2,1,0,36],"3"],[[2,8,7,1],"4288"],[[2,1,7,8],"4162"],[[2,3,9,8],"8452"],[[2,8,9,3],"8576"],[[3,2,1,0],"7"],[[3,9,15,21],"1074266368"],[[3,2,1,7],"70"],[[3,2,8,7],"4228"],[[3,9,8,7],"12544"],[[3,2,8,14],"262276"],[[3,9,8,14],"270592"],[[3,9,15,14],"17301760"],[[3,9,15,16],"34078976"],[[3,9,10,16],"1065216"],[[3,4,10,16],"1049096"],[[3,9,10,11],"49408"],[[3,4,10,11],"33288"],[[3,4,5,11],"1048"],[[3,4,5,36],"24"],[[3,2,1,36],"6"],[[3,9,8,2],"8576"],[[3,2,8,9],"8324"],[[3,4,10,9],"16904"],[[3,9,10,4],"17152"],[[4,3,2,1],"14"],[[4,10,16,22],"2148532736"],[[4,3,2,8],"140"],[[4,3,9,8],"8456"],[[4,10,9,8],"25088"],[[4,3,9,15],"524552"],[[4,10,9,15],"541184"],[[4,10,16,15],"34603520"],[[4,10,16,17],"68157952"],[[4,10,11,17],"2130432"],[[4,5,11,17],"2098192"],[[4,3,2,36],"12"],[[4,10,9,3],"17152"],[[4,3,9,10],"16648"],[[4,5,11,10],"33808"],[[4,10,11,5],"34304"],[[5,4,3,2],"28"],[[5,11,17,23],"4297065472"],[[5,4,3,9],"280"],[[5,4,10,9],"16912"],[[5,11,10,9],"50176"],[[5,4,10,16],"1049104"],[[5,11,10,16],"1082368"],[[5,11,17,16],"69207040"],[[5,4,3,36],"24"],[[5,11,10,4],"34304"],[[5,4,10,11],"33296"],[[6,12,18,24],"275012190208"],[[6,7,8,9],"14336"],[[6,12,18,19],"8724217856"],[[6,12,13,19],"272695296"],[[6,7,13,19],"268568576"],[[6,12,13,14],"12648448"],[[6,7,13,14],"8521728"],[[6,7,8,14],"268288"],[[6,7,8,2],"6272"],[[6,7,1,2],"2114"],[[6,0,1,2],"35"],[[6,7,1,36],"2112"],[[6,0,1,36],"33"],[[6,7,13,12],"4327424"],[[6,12,13,7],"4390912"],[[6,0,1,7],"97"],[[6,7,1,0],"2113"],[[7,13,19,25],"550024380416"],[[7,8,9,10],"28672"],[[7,6,12,18],"134285312"],[[7,13,12,18],"138543104"],[[7,13,19,18],"8858501120"],[[7,13,19,20],"17448435712"],[[7,13,14,20],"545390592"],[[7,8,14,20],"537137152"],[[7,13,14,15],"25296896"],[[7,8,14,15],"17043456"],[[7,8,9,15],"536576"],[[7,8,9,3],"12544"],[[7,8,2,3],"4228"],[[7,1,2,3],"70"],[[7,8,2,36],"4224"],[[7,1,2,36],"66"],[[7,1,0,36],"65"],[[7,6,0,36],"2080"],[[7,1,0,6],"97"],[[7,13,12,6],"4390912"],[[7,6,12,13],"4261888"],[[7,8,14,13],"8654848"],[[7,13,14,8],"8781824"],[[7,1,2,8],"194"],[[7,8,2,1],"4226"],[[7,6,0,1],"2081"],[[8,14,20,26],"1100048760832"],[[8,9,10,11],"57344"],[[8,7,6,12],"71680"],[[8,7,13,12],"4329472"],[[8,14,13,12],"12845056"],[[8,7,13,19],"268570624"],[[8,14,13,19],"277086208"],[[8,14,20,19],"17717002240"],[[8,14,20,21],"34896871424"],[[8,14,15,21],"1090781184"],[[8,9,15,21],"1074274304"],[[8,14,15,16],"50593792"],[[8,9,15,16],"34086912"],[[8,9,10,16],"1073152"],[[8,9,10,4],"25088"],[[8,9,3,4],"8456"],[[8,2,3,4],"140"],[[8,9,3,36],"8448"],[[8,2,3,36],"132"],[[8,2,1,36],"130"],[[8,7,1,36],"4160"],[[8,2,1,0],"131"],[[8,7,1,0],"4161"],[[8,7,6,0],"6176"],[[8,2,1,7],"194"],[[8,14,13,7],"8781824"],[[8,7,13,14],"8523776"],[[8,9,15,14],"17309696"],[[8,14,15,9],"17563648"],[[8,2,3,9],"388"],[[8,9,3,2],"8452"],[[8,7,1,2],"4162"],[[9,8,7,6],"14336"],[[9,15,21,27],"2200097521664"],[[9,8,7,13],"143360"],[[9,8,14,13],"8658944"],[[9,15,14,13],"25690112"],[[9,8,14,20],"537141248"],[[9,15,14,20],"554172416"],[[9,15,21,20],"35434004480"],[[9,15,21,22],"69793742848"],[[9,15,16,22],"2181562368"],[[9,10,16,22],"2148548608"],[[9,15,16,17],"101187584"],[[9,10,16,17],"68173824"],[[9,10,11,17],"2146304"],[[9,10,11,5],"50176"],[[9,10,4,5],"16912"],[[9,3,4,5],"280"],[[9,10,4,36],"16896"],[[9,3,4,36],"264"],[[9,3,2,36],"260"],[[9,8,2,36],"8320"],[[9,3,2,1],"262"],[[9,8,2,1],"8322"],[[9,8,7,1],"12352"],[[9,3,2,8],"388"],[[9,15,14,8],"17563648"],[[9,8,14,15],"17047552"],[[9,10,16,15],"34619392"],[[9,15,16,10],"35127296"],[[9,3,4,10],"776"],[[9,10,4,3],"16904"],[[9,8,2,3],"8324"],[[10,9,8,7],"28672"],[[10,16,22,28],"4400195043328"],[[10,9,8,14],"286720"],[[10,9,15,14],"17317888"],[[10,16,15,14],"51380224"],[[10,9,15,21],"1074282496"],[[10,16,15,21],"1108344832"],[[10,16,22,21],"70868008960"],[[10,16,22,23],"139587485696"],[[10,16,17,23],"4363124736"],[[10,11,17,23],"4297097216"],[[10,11,5,36],"33792"],[[10,4,5,36],"528"],[[10,4,3,36],"520"],[[10,9,3,36],"16640"],[[10,4,3,2],"524"],[[10,9,3,2],"16644"],[[10,9,8,2],"24704"],[[10,4,3,9],"776"],[[10,16,15,9],"35127296"],[[10,9,15,16],"34095104"],[[10,11,17,16],"69238784"],[[10,16,17,11],"70254592"],[[10,4,5,11],"1552"],[[10,11,5,4],"33808"],[[10,9,3,4],"16648"],[[11,10,9,8],"57344"],[[11,17,23,29],"8800390086656"],[[11,10,9,15],"573440"],[[11,10,16,15],"34635776"],[[11,17,16,15],"102760448"],[[11,10,16,22],"2148564992"],[[11,17,16,22],"2216689664"],[[11,17,23,22],"141736017920"],[[11,5,4,36],"1040"],[[11,10,4,36],"33280"],[[11,5,4,3],"1048"],[[11,10,4,3],"33288"],[[11,10,9,3],"49408"],[[11,5,4,10],"1552"],[[11,17,16,10],"70254592"],[[11,10,16,17],"68190208"],[[11,10,4,5],"33296"],[[12,18,24,30],"563224965545984"],[[12,13,14,15],"29360128"],[[12,6,0,36],"65568"],[[12,18,24,25],"17867198169088"],[[12,18,19,25],"558479966208"],[[12,13,19,25],"550028443648"],[[12,18,19,20],"25904021504"],[[12,13,19,20],"17452498944"],[[12,13,14,20],"549453824"],[[12,13,14,8],"12845056"],[[12,13,7,8],"4329472"],[[12,6,7,8],"71680"],[[12,13,7,1],"4325440"],[[12,6,7,1],"67648"],[[12,6,0,1],"65569"],[[12,13,19,18],"8862564352"],[[12,18,19,13],"8992587776"],[[12,6,7,13],"198656"],[[12,13,7,6],"4327424"],[[13,19,25,31],"1126449931091968"],[[13,14,15,16],"58720256"],[[13,7,1,36],"131136"],[[13,12,18,24],"275016318976"],[[13,19,18,24],"283736276992"],[[13,19,25,24],"18142210293760"],[[13,19,25,26],"35734396338176"],[[13,19,20,26],"1116959932416"],[[13,14,20,26],"1100056887296"],[[13,19,20,21],"51808043008"],[[13,14,20,21],"34904997888"],[[13,14,15,21],"1098907648"],[[13,14,15,9],"25690112"],[[13,14,8,9],"8658944"],[[13,7,8,9],"143360"],[[13,14,8,2],"8650880"],[[13,7,8,2],"135296"],[[13,7,1,2],"131138"],[[13,7,1,0],"131137"],[[13,7,6,0],"133152"],[[13,12,6,0],"4259872"],[[13,7,6,12],"198656"],[[13,19,18,12],"8992587776"],[[13,12,18,19],"8728346624"],[[13,14,20,19],"17725128704"],[[13,19,20,14],"17985175552"],[[13,7,8,14],"397312"],[[13,14,8,7],"8654848"],[[13,12,6,7],"4261888"],[[14,20,26,32],"2252899862183936"],[[14,15,16,17],"117440512"],[[14,8,2,36],"262272"],[[14,13,12,18],"146800640"],[[14,13,19,18],"8866758656"],[[14,20,19,18],"26306674688"],[[14,13,19,25],"550032637952"],[[14,20,19,25],"567472553984"],[[14,20,26,25],"36284420587520"],[[14,20,26,27],"71468792676352"],[[14,20,21,27],"2233919864832"],[[14,15,21,27],"2200113774592"],[[14,20,21,22],"103616086016"],[[14,15,21,22],"69809995776"],[[14,15,16,22],"2197815296"],[[14,15,16,10],"51380224"],[[14,15,9,10],"17317888"],[[14,8,9,10],"286720"],[[14,15,9,3],"17301760"],[[14,8,9,3],"270592"],[[14,8,2,3],"262276"],[[14,8,2,1],"262274"],[[14,8,7,1],"266304"],[[14,13,7,1],"8519744"],[[14,8,7,6],"268288"],[[14,13,7,6],"8521728"],[[14,13,12,6],"12648448"],[[14,8,7,13],"397312"],[[14,20,19,13],"17985175552"],[[14,13,19,20],"17456693248"],[[14,15,21,20],"35450257408"],[[14,20,21,15],"35970351104"],[[14,8,9,15],"794624"],[[14,15,9,8],"17309696"],[[14,13,7,8],"8523776"],[[15,14,13,12],"29360128"],[[15,21,27,33],"4505799724367872"],[[15,9,3,36],"524544"],[[15,14,13,19],"293601280"],[[15,14,20,19],"17733517312"],[[15,21,20,19],"52613349376"],[[15,14,20,26],"1100065275904"],[[15,21,20,26],"1134945107968"],[[15,21,27,26],"72568841175040"],[[15,21,27,28],"142937585352704"],[[15,21,22,28],"4467839729664"],[[15,16,22,28],"4400227549184"],[[15,21,22,23],"207232172032"],[[15,16,22,23],"139619991552"],[[15,16,17,23],"4395630592"],[[15,16,17,11],"102760448"],[[15,16,10,11],"34635776"],[[15,9,10,11],"573440"],[[15,16,10,4],"34603520"],[[15,9,10,4],"541184"],[[15,9,3,4],"524552"],[[15,9,3,2],"524548"],[[15,9,8,2],"532608"],[[15,14,8,2],"17039488"],[[15,9,8,7],"536576"],[[15,14,8,7],"17043456"],[[15,14,13,7],"25296896"],[[15,9,8,14],"794624"],[[15,21,20,14],"35970351104"],[[15,14,20,21],"34913386496"],[[15,16,22,21],"70900514816"],[[15,21,22,16],"71940702208"],[[15,9,10,16],"1589248"],[[15,16,10,9],"34619392"],[[15,14,8,9],"17047552"],[[16,15,14,13],"58720256"],[[16,22,28,34],"9011599448735744"],[[16,10,4,36],"1049088"],[[16,15,14,20],"587202560"],[[16,15,21,20],"35467034624"],[[16,22,21,20],"105226698752"],[[16,15,21,27],"2200130551808"],[[16,22,21,27],"2269890215936"],[[16,22,28,27],"145137682350080"],[[16,22,28,29],"285875170705408"],[[16,22,23,29],"8935679459328"],[[16,17,23,29],"8800455098368"],[[16,17,11,5],"69207040"],[[16,10,11,5],"1082368"],[[16,10,4,5],"1049104"],[[16,10,4,3],"1049096"],[[16,10,9,3],"1065216"],[[16,15,9,3],"34078976"],[[16,10,9,8],"1073152"],[[16,15,9,8],"34086912"],[[16,15,14,8],"50593792"],[[16,10,9,15],"1589248"],[[16,22,21,15],"71940702208"],[[16,15,21,22],"69826772992"],[[16,17,23,22],"141801029632"],[[16,22,23,17],"143881404416"],[[16,10,11,17],"3178496"],[[16,17,11,10],"69238784"],[[16,15,9,10],"34095104"],[[17,16,15,14],"117440512"],[[17,23,29,35],"18023198897471488"],[[17,11,5,36],"2098176"],[[17,16,15,21],"1174405120"],[[17,16,22,21],"70934069248"],[[17,23,22,21],"210453397504"],[[17,16,22,28],"4400261103616"],[[17,23,22,28],"4539780431872"],[[17,23,29,28],"290275364700160"],[[17,11,5,4],"2098192"],[[17,11,10,4],"2130432"],[[17,16,10,4],"68157952"],[[17,11,10,9],"2146304"],[[17,16,10,9],"68173824"],[[17,16,15,9],"101187584"],[[17,11,10,16],"3178496"],[[17,23,22,16],"143881404416"],[[17,16,22,23],"139653545984"],[[17,16,10,11],"68190208"],[[18,24,30,37],"563224831328256"],[[18,19,20,21],"60129542144"],[[18,12,6,0],"134283296"],[[18,24,30,31],"36592021850292224"],[[18,24,25,31],"1143766970793984"],[[18,19,25,31],"1126458252591104"],[[18,24,25,26],"53051436040192"],[[18,19,25,26],"35742717837312"],[[18,19,20,26],"1125281431552"],[[18,19,20,14],"26306674688"],[[18,19,13,14],"8866758656"],[[18,12,13,14],"146800640"],[[18,19,13,7],"8858501120"],[[18,12,13,7],"138543104"],[[18,12,6,7],"134285312"],[[18,19,25,24],"18150531792896"],[[18,24,25,19],"18416819765248"],[[18,12,13,19],"406847488"],[[18,19,13,12],"8862564352"],[[19,25,31,37],"1126449662656512"],[[19,20,21,22],"120259084288"],[[19,13,7,1],"268566592"],[[19,18,24,30],"563233421262848"],[[19,25,24,30],"581091895279616"],[[19,25,31,30],"37155246681620480"],[[19,25,31,32],"73184043700584448"],[[19,25,26,32],"2287533941587968"],[[19,20,26,32],"2252916505182208"],[[19,25,26,27],"106102872080384"],[[19,20,26,27],"71485435674624"],[[19,20,21,27],"2250562863104"],[[19,20,21,15],"52613349376"],[[19,20,14,15],"17733517312"],[[19,13,14,15],"293601280"],[[19,20,14,8],"17717002240"],[[19,13,14,8],"277086208"],[[19,13,7,8],"268570624"],[[19,13,7,6],"268568576"],[[19,13,12,6],"272695296"],[[19,18,12,6],"8724217856"],[[19,13,12,18],"406847488"],[[19,25,24,18],"18416819765248"],[[19,18,24,25],"17875653885952"],[[19,20,26,25],"36301063585792"],[[19,25,26,20],"36833639530496"],[[19,13,14,20],"813694976"],[[19,20,14,13],"17725128704"],[[19,18,12,13],"8728346624"],[[20,26,32,37],"2252899325313024"],[[20,21,22,23],"240518168576"],[[20,14,8,2],"537133184"],[[20,19,18,24],"300647710720"],[[20,19,25,24],"18159121727488"],[[20,26,25,24],"53876069761024"],[[20,19,25,31],"1126466842525696"],[[20,26,25,31],"1162183790559232"],[[20,26,32,31],"74310493363240960"],[[20,26,32,33],"146368087401168896"],[[20,26,27,33],"4575067883175936"],[[20,21,27,33],"4505833010364416"],[[20,26,27,28],"212205744160768"],[[20,21,27,28],"142970871349248"],[[20,21,22,28],"4501125726208"],[[20,21,22,16],"105226698752"],[[20,21,15,16],"35467034624"],[[20,14,15,16],"587202560"],[[20,21,15,9],"35434004480"],[[20,14,15,9],"554172416"],[[20,14,8,9],"537141248"],[[20,14,8,7],"537137152"],[[20,14,13,7],"545390592"],[[20,19,13,7],"17448435712"],[[20,14,13,12],"549453824"],[[20,19,13,12],"17452498944"],[[20,19,18,12],"25904021504"],[[20,14,13,19],"813694976"],[[20,26,25,19],"36833639530496"],[[20,19,25,26],"35751307771904"],[[20,21,27,26],"72602127171584"],[[20,26,27,21],"73667279060992"],[[20,14,15,21],"1627389952"],[[20,21,15,14],"35450257408"],[[20,19,13,14],"17456693248"],[[21,20,19,18],"60129542144"],[[21,27,33,37],"4505798650626048"],[[21,15,9,3],"1074266368"],[[21,20,19,25],"601295421440"],[[21,20,26,25],"36318243454976"],[[21,27,26,25],"107752139522048"],[[21,20,26,32],"2252933685051392"],[[21,27,26,32],"2324367581118464"],[[21,27,33,32],"148620986726481920"],[[21,27,33,34],"292736174802337792"],[[21,27,28,34],"9150135766351872"],[[21,22,28,34],"9011666020728832"],[[21,27,28,29],"424411488321536"],[[21,22,28,29],"285941742698496"],[[21,22,23,29],"9002251452416"],[[21,22,23,17],"210453397504"],[[21,22,16,17],"70934069248"],[[21,15,16,17],"1174405120"],[[21,22,16,10],"70868008960"],[[21,15,16,10],"1108344832"],[[21,15,9,10],"1074282496"],[[21,15,9,8],"1074274304"],[[21,15,14,8],"1090781184"],[[21,20,14,8],"34896871424"],[[21,15,14,13],"1098907648"],[[21,20,14,13],"34904997888"],[[21,20,19,13],"51808043008"],[[21,15,14,20],"1627389952"],[[21,27,26,20],"73667279060992"],[[21,20,26,27],"71502615543808"],[[21,22,28,27],"145204254343168"],[[21,27,28,22],"147334558121984"],[[21,15,16,22],"3254779904"],[[21,22,16,15],"70900514816"],[[21,20,14,15],"34913386496"],[[22,21,20,19],"120259084288"],[[22,28,34,37],"9011597301252096"],[[22,16,10,4],"2148532736"],[[22,21,20,26],"1202590842880"],[[22,21,27,26],"72636486909952"],[[22,28,27,26],"215504279044096"],[[22,21,27,33],"4505867370102784"],[[22,28,27,33],"4648735162236928"],[[22,28,34,33],"297241973452963840"],[[22,28,34,35],"585472349604675584"],[[22,28,29,35],"18300271532703744"],[[22,23,29,35],"18023332041457664"],[[22,23,17,11],"141736017920"],[[22,16,17,11],"2216689664"],[[22,16,10,11],"2148564992"],[[22,16,10,9],"2148548608"],[[22,16,15,9],"2181562368"],[[22,21,15,9],"69793742848"],[[22,16,15,14],"2197815296"],[[22,21,15,14],"69809995776"],[[22,21,20,14],"103616086016"],[[22,16,15,21],"3254779904"],[[22,28,27,21],"147334558121984"],[[22,21,27,28],"143005231087616"],[[22,23,29,28],"290408508686336"],[[22,28,29,23],"294669116243968"],[[22,16,17,23],"6509559808"],[[22,23,17,16],"141801029632"],[[22,21,15,16],"69826772992"],[[23,22,21,20],"240518168576"],[[23,29,35,37],"18023194602504192"],[[23,17,11,5],"4297065472"],[[23,22,21,27],"2405181685760"],[[23,22,28,27],"145272973819904"],[[23,29,28,27],"431008558088192"],[[23,22,28,34],"9011734740205568"],[[23,29,28,34],"9297470324473856"],[[23,29,35,34],"594483946905927680"],[[23,17,11,10],"4297097216"],[[23,17,16,10],"4363124736"],[[23,22,16,10],"139587485696"],[[23,17,16,15],"4395630592"],[[23,22,16,15],"139619991552"],[[23,22,21,15],"207232172032"],[[23,17,16,22],"6509559808"],[[23,29,28,22],"294669116243968"],[[23,22,28,29],"286010462175232"],[[23,22,16,17],"139653545984"],[[24,25,26,27],"123145302310912"],[[24,18,12,6],"275012190208"],[[24,30,31,37],"36591746972385280"],[[24,25,31,37],"1143492092887040"],[[24,30,31,32],"108649341010313216"],[[24,25,31,32],"73201086130814976"],[[24,25,26,32],"2304576371818496"],[[24,25,26,20],"53876069761024"],[[24,25,19,20],"18159121727488"],[[24,18,19,20],"300647710720"],[[24,25,19,13],"18142210293760"],[[24,18,19,13],"283736276992"],[[24,18,12,13],"275016318976"],[[24,25,31,30],"37172289111851008"],[[24,30,31,25],"37717646879227904"],[[24,18,19,25],"833223655424"],[[24,25,19,18],"18150531792896"],[[25,26,27,28],"246290604621824"],[[25,19,13,7],"550024380416"],[[25,24,30,37],"580542139465728"],[[25,31,30,37],"37154696925806592"],[[25,31,32,37],"73183493944770560"],[[25,26,32,37],"2286984185774080"],[[25,31,32,33],"217298682020626432"],[[25,26,32,33],"146402172261629952"],[[25,26,27,33],"4609152743636992"],[[25,26,27,21],"107752139522048"],[[25,26,20,21],"36318243454976"],[[25,19,20,21],"601295421440"],[[25,26,20,14],"36284420587520"],[[25,19,20,14],"567472553984"],[[25,19,13,14],"550032637952"],[[25,19,13,12],"550028443648"],[[25,19,18,12],"558479966208"],[[25,24,18,12],"17867198169088"],[[25,19,18,24],"833223655424"],[[25,31,30,24],"37717646879227904"],[[25,24,30,31],"36609339158429696"],[[25,26,32,31],"74344578223702016"],[[25,31,32,26],"75435293758455808"],[[25,19,20,26],"1666447310848"],[[25,26,20,19],"36301063585792"],[[25,24,18,19],"17875653885952"],[[26,27,28,29],"492581209243648"],[[26,20,14,8],"1100048760832"],[[26,25,24,30],"615726511554560"],[[26,25,31,30],"37189881297895424"],[[26,32,31,30],"110338190870577152"],[[26,25,31,37],"1161084278931456"],[[26,32,31,37],"74309393851613184"],[[26,32,33,37],"146366987889541120"],[[26,27,33,37],"4573968371548160"],[[26,32,33,34],"434597364041252864"],[[26,27,33,34],"292804344523259904"],[[26,27,28,34],"9218305487273984"],[[26,27,28,22],"215504279044096"],[[26,27,21,22],"72636486909952"],[[26,20,21,22],"1202590842880"],[[26,27,21,15],"72568841175040"],[[26,20,21,15],"1134945107968"],[[26,20,14,15],"1100065275904"],[[26,20,14,13],"1100056887296"],[[26,20,19,13],"1116959932416"],[[26,25,19,13],"35734396338176"],[[26,20,19,18],"1125281431552"],[[26,25,19,18],"35742717837312"],[[26,25,24,18],"53051436040192"],[[26,20,19,25],"1666447310848"],[[26,32,31,25],"75435293758455808"],[[26,25,31,32],"73218678316859392"],[[26,27,33,32],"148689156447404032"],[[26,32,33,27],"150870587516911616"],[[26,20,21,27],"3332894621696"],[[26,27,21,20],"72602127171584"],[[26,25,19,20],"35751307771904"],[[27,26,25,24],"123145302310912"],[[27,21,15,9],"2200097521664"],[[27,26,25,31],"1231453023109120"],[[27,26,32,31],"74379762595790848"],[[27,33,32,31],"220676381741154304"],[[27,26,32,37],"2322168557862912"],[[27,33,32,37],"148618787703226368"],[[27,33,34,37],"292733975779082240"],[[27,28,34,37],"9147936743096320"],[[27,33,34,35],"869194728082505728"],[[27,28,34,35],"585608689046519808"],[[27,28,29,35],"18436610974547968"],[[27,28,29,23],"431008558088192"],[[27,28,22,23],"145272973819904"],[[27,21,22,23],"2405181685760"],[[27,28,22,16],"145137682350080"],[[27,21,22,16],"2269890215936"],[[27,21,15,16],"2200130551808"],[[27,21,15,14],"2200113774592"],[[27,21,20,14],"2233919864832"],[[27,26,20,14],"71468792676352"],[[27,21,20,19],"2250562863104"],[[27,26,20,19],"71485435674624"],[[27,26,25,19],"106102872080384"],[[27,21,20,26],"3332894621696"],[[27,33,32,26],"150870587516911616"],[[27,26,32,33],"146437356633718784"],[[27,28,34,33],"297378312894808064"],[[27,33,34,28],"301741175033823232"],[[27,21,22,28],"6665789243392"],[[27,28,22,21],"145204254343168"],[[27,26,20,21],"71502615543808"],[[28,27,26,25],"246290604621824"],[[28,22,16,10],"4400195043328"],[[28,27,26,32],"2462906046218240"],[[28,27,33,32],"148759525191581696"],[[28,34,33,32],"441352763482308608"],[[28,27,33,37],"4644337115725824"],[[28,34,33,37],"297237575406452736"],[[28,34,35,37],"585467951558164480"],[[28,29,35,37],"18295873486192640"],[[28,29,23,17],"290275364700160"],[[28,22,23,17],"4539780431872"],[[28,22,16,17],"4400261103616"],[[28,22,16,15],"4400227549184"],[[28,22,21,15],"4467839729664"],[[28,27,21,15],"142937585352704"],[[28,22,21,20],"4501125726208"],[[28,27,21,20],"142970871349248"],[[28,27,26,20],"212205744160768"],[[28,22,21,27],"6665789243392"],[[28,34,33,27],"301741175033823232"],[[28,27,33,34],"292874713267437568"],[[28,29,35,34],"594756625789616128"],[[28,34,35,29],"603482350067646464"],[[28,22,23,29],"13331578486784"],[[28,29,23,22],"290408508686336"],[[28,27,21,22],"143005231087616"],[[29,28,27,26],"492581209243648"],[[29,23,17,11],"8800390086656"],[[29,28,27,33],"4925812092436480"],[[29,28,34,33],"297519050383163392"],[[29,35,34,33],"882705526964617216"],[[29,28,34,37],"9288674231451648"],[[29,35,34,37],"594475150812905472"],[[29,23,17,16],"8800455098368"],[[29,23,22,16],"8935679459328"],[[29,28,22,16],"285875170705408"],[[29,23,22,21],"9002251452416"],[[29,28,22,21],"285941742698496"],[[29,28,27,21],"424411488321536"],[[29,23,22,28],"13331578486784"],[[29,35,34,28],"603482350067646464"],[[29,28,34,35],"585749426534875136"],[[29,28,22,23],"286010462175232"],[[30,31,32,33],"252201579132747776"],[[30,24,18,12],"563224965545984"],[[30,31,32,37],"108086391056891904"],[[30,31,32,26],"110338190870577152"],[[30,31,25,26],"37189881297895424"],[[30,24,25,26],"615726511554560"],[[30,31,25,19],"37155246681620480"],[[30,24,25,19],"581091895279616"],[[30,24,18,19],"563233421262848"],[[30,24,25,31],"1706442046308352"],[[30,31,25,24],"37172289111851008"],[[31,32,33,34],"504403158265495552"],[[31,25,19,13],"1126449931091968"],[[31,32,33,37],"216172782113783808"],[[31,32,33,27],"220676381741154304"],[[31,32,26,27],"74379762595790848"],[[31,25,26,27],"1231453023109120"],[[31,32,26,20],"74310493363240960"],[[31,25,26,20],"1162183790559232"],[[31,25,19,20],"1126466842525696"],[[31,25,19,18],"1126458252591104"],[[31,25,24,18],"1143766970793984"],[[31,30,24,18],"36592021850292224"],[[31,25,24,30],"1706442046308352"],[[31,25,26,32],"3412884092616704"],[[31,32,26,25],"74344578223702016"],[[31,30,24,25],"36609339158429696"],[[32,33,34,35],"1008806316530991104"],[[32,26,20,14],"2252899862183936"],[[32,31,30,37],"108086391056891904"],[[32,33,34,37],"432345564227567616"],[[32,33,34,28],"441352763482308608"],[[32,33,27,28],"148759525191581696"],[[32,26,27,28],"2462906046218240"],[[32,33,27,21],"148620986726481920"],[[32,26,27,21],"2324367581118464"],[[32,26,20,21],"2252933685051392"],[[32,26,20,19],"2252916505182208"],[[32,26,25,19],"2287533941587968"],[[32,31,25,19],"73184043700584448"],[[32,26,25,24],"2304576371818496"],[[32,31,25,24],"73201086130814976"],[[32,31,30,24],"108649341010313216"],[[32,26,25,31],"3412884092616704"],[[32,26,27,33],"6825768185233408"],[[32,33,27,26],"148689156447404032"],[[32,31,25,26],"73218678316859392"],[[33,32,31,30],"252201579132747776"],[[33,27,21,15],"4505799724367872"],[[33,32,31,37],"216172782113783808"],[[33,34,35,37],"864691128455135232"],[[33,34,35,29],"882705526964617216"],[[33,34,28,29],"297519050383163392"],[[33,27,28,29],"4925812092436480"],[[33,34,28,22],"297241973452963840"],[[33,27,28,22],"4648735162236928"],[[33,27,21,22],"4505867370102784"],[[33,27,21,20],"4505833010364416"],[[33,27,26,20],"4575067883175936"],[[33,32,26,20],"146368087401168896"],[[33,27,26,25],"4609152743636992"],[[33,32,26,25],"146402172261629952"],[[33,32,31,25],"217298682020626432"],[[33,27,26,32],"6825768185233408"],[[33,27,28,34],"13651536370466816"],[[33,34,28,27],"297378312894808064"],[[33,32,26,27],"146437356633718784"],[[34,33,32,31],"504403158265495552"],[[34,28,22,16],"9011599448735744"],[[34,33,32,37],"432345564227567616"],[[34,35,29,23],"594483946905927680"],[[34,28,29,23],"9297470324473856"],[[34,28,22,23],"9011734740205568"],[[34,28,22,21],"9011666020728832"],[[34,28,27,21],"9150135766351872"],[[34,33,27,21],"292736174802337792"],[[34,28,27,26],"9218305487273984"],[[34,33,27,26],"292804344523259904"],[[34,33,32,26],"434597364041252864"],[[34,28,27,33],"13651536370466816"],[[34,28,29,35],"27303072740933632"],[[34,35,29,28],"594756625789616128"],[[34,33,27,28],"292874713267437568"],[[35,34,33,32],"1008806316530991104"],[[35,29,23,17],"18023198897471488"],[[35,34,33,37],"864691128455135232"],[[35,29,23,22],"18023332041457664"],[[35,29,28,22],"18300271532703744"],[[35,34,28,22],"585472349604675584"],[[35,29,28,27],"18436610974547968"],[[35,34,28,27],"585608689046519808"],[[35,34,33,27],"869194728082505728"],[[35,29,28,34],"27303072740933632"],[[35,34,28,29],"585749426534875136"]]]
{
"title": "Waystone \u00b7 Borrowed Steps",
"slug": "waystone-borrowed-steps",
"repository": "https://github.com/Beck-Bjella/Gyges",
"source": "https://github.com/Beck-Bjella/Gyges/tree/261b569492a1efb09e1b19b06f73c311d7fa99d8",
"stars_observed": 1,
"license": "AGPL-3.0-or-later",
"pushed_at": "2026-10-30T04:08:05Z",
"tags": [
"github-source",
"game"
],
"adaptation": "JavaScript port of upstream movegen/board/move_list plus original path tables. No native server or WebAssembly. New browser interface, local bounded tactical rival, lessons, undo and saves."
}