Skip to content

Instantly share code, notes, and snippets.

@edwingustafson
Last active October 7, 2020 13:26
Show Gist options
  • Select an option

  • Save edwingustafson/681f30199efd93c47b37930c13b2569e to your computer and use it in GitHub Desktop.

Select an option

Save edwingustafson/681f30199efd93c47b37930c13b2569e to your computer and use it in GitHub Desktop.
Maze generator
#!/usr/bin/env node
// Based on the Commodore 64 single line maze generator
// 10 PRINT CHR$(205.5+RND(1)); : GOTO 10
// as described at https://10print.org/
while (true) process.stdout.write(['\u2571','\u2572'][Math.floor(0.5 + Math.random())]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment