Hacker News
new
|
comments
|
show
|
ask
|
jobs
|
submit
login
rfugger
on Dec 1, 2012
|
parent
|
favorite
| on:
A single line of Basic sends readers into a labyri...
I don't think a "corridor" ever forks, so it's not really a labyrinth where there are decisions to be made about which way to go, it's just a bunch of disjoint long, twisty hallways.
iliis
on Dec 1, 2012
Add a space every now an then and it becomes a 'real' maze:
#include <stdio.h> main() { for(;;) {printf(rand()%2 ? "╱":"╲"); if(rand()%100<1) putchar(' ');} }
Guidelines
|
FAQ
|
Support
|
API
|
Security
|
Lists
|
Bookmarklet
|
Legal
|
Apply to YC
|
Contact
Search: