(function() {
var container = document.getElementById(‘tolman-game-wrapper’);
if (!container) { console.error(“Tolman Game: Container not found.”); return; }
// Safety clear to prevent duplicates
container.innerHTML = ”;
var iframe = document.createElement(‘iframe’);
iframe.style.width = “100%”;
iframe.style.height = “100%”;
iframe.style.border = “none”;
// Allow scrolling if screen is too small
iframe.style.overflowY = “auto”;
container.appendChild(iframe);
var gameSource = `
Tolman’s Maze
SUBJECT: 001 // RUN: 1/3
PROTOCOL: MAPPING MODE
TIME: 0.00s
LATENT LEARNING SIM
LOCATE BIO-EXIT UNIT structure [ + ].
Memorize the path.
`;
var doc = iframe.contentWindow.document; doc.open(); doc.write(gameSource); doc.close();
})();