Here's a bash version in 50 characters (https://codegolf.stackexchange.com/a/26011/7934):
w=(╱ ╲);while :;do echo -n ${w[RANDOM%2]};done
and how it looks like:Here's a bash version in 50 characters (https://codegolf.stackexchange.com/a/26011/7934):
w=(╱ ╲);while :;do echo -n ${w[RANDOM%2]};done
and how it looks like:In fact, as the size of the maze goes to infinity, the probability of solvability goes to zero. Source: https://cstheory.stackexchange.com/a/32381/20581
10 PRINT CHR$(205.5+RND(1)); : GOTO 10I can't recommend it without reservation, but if you're curious what a whole book about one line of code is like, you can find out.
Here is my orthogonal version:
`w=(├┤┴┬─\|);while :;do echo -n ${w:$RANDOM%6:1};done`
It is based on the 1-liner discussed at <https://www.youtube.com/watch?v=oPtjcSsS2MI>, and uses the PETSCII characters within Unicode.
Screenshot: <https://imgur.com/a/YrvpAqZ> (from `cool-retro-term`'s Apple II profile resized to 80x25, to sort of replicate a Commodore PET's look)