// Local game id helpers, in a tiny standalone module with no engine/generator imports, so the // dispatcher (lib/gamesource) can recognise a local game id — and the game screen can branch on it // — without eagerly bundling the whole offline engine. The engine is dynamically imported only when // a local game is actually played (keeping the app entry bundle within its size budget). /** LOCAL_ID_PREFIX marks a game id as a local (offline) game. */ export const LOCAL_ID_PREFIX = 'local:'; /** isLocalGameId reports whether an id belongs to a local game. */ export function isLocalGameId(id: string): boolean { return id.startsWith(LOCAL_ID_PREFIX); }