Created
August 10, 2018 21:35
-
-
Save doct0rX/df76d1db0ade6e360bd96630195fe2cb to your computer and use it in GitHub Desktop.
Sample
This file contains 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
<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