Skip to content

Instantly share code, notes, and snippets.

@doct0rX
Created August 10, 2018 21:35
Show Gist options
  • Save doct0rX/df76d1db0ade6e360bd96630195fe2cb to your computer and use it in GitHub Desktop.
Save doct0rX/df76d1db0ade6e360bd96630195fe2cb to your computer and use it in GitHub Desktop.
Sample
<p style="line-height: 18px; font-size: 18px; font-family: times;">
Click "<i>Load samples</i>" to view and edit more JS samples.<br>
<br>
Labyrinth generated with JavaScript:<br><br>
<script>
for (var line=1; line<60; line++) {
for(var i=1;i<50;i++) {
var s = (Math.floor((Math.random()*5)%3)) ? "╱" : "╲";
document.write(s);
}
document.writeln("<br>");
}
</script>
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment