Last active
October 7, 2020 13:26
-
-
Save edwingustafson/681f30199efd93c47b37930c13b2569e to your computer and use it in GitHub Desktop.
Maze generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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