Skip to content

Instantly share code, notes, and snippets.

@rwaldron
Last active July 1, 2017 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwaldron/486ba808018751a41cc28e7474437cb3 to your computer and use it in GitHub Desktop.
Save rwaldron/486ba808018751a41cc28e7474437cb3 to your computer and use it in GitHub Desktop.
Found on https://js.do
Labyrinth generated with JavaScript:<br><br>
<script>
for (var line=1; line<60; line++) {
for(var i=1;i<29;i++) {
var s = (Math.floor((Math.random()*2)%2)) ? "╱" : "╲";
document.write(s);
}
document.writeln("<br>");
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment