Skip to content

Instantly share code, notes, and snippets.

@greggman
Last active August 1, 2026 09:49
Show Gist options
  • Select an option

  • Save greggman/e7b6ae15975c440dd2b4089a920afc77 to your computer and use it in GitHub Desktop.

Select an option

Save greggman/e7b6ae15975c440dd2b4089a920afc77 to your computer and use it in GitHub Desktop.
Diagonal Cells make Maze Like
:root {
color-scheme: light dark;
}
<pre>
</pre>
const rows = [];
for (let r = 0; r < 100; ++r) {
const l = [];
for (let c = 0; c < 80; ++c) {
l.push(Math.random() >= 0.5 ? '╱' : '╲');
}
rows.push(l.join(''));
}
document.querySelector('pre').textContent = rows.join('\n');
{"name":"Diagonal Cells make Maze Like","settings":{},"filenames":["index.html","index.css","index.js"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment