Re:A single line of Basic sends readers into a labyrinth
by mmphosis on Friday November 30, 2012 @08:24PM
(#4856447)
Run it on another old-school computer, like an Apple II, and you won’t get the same transfixing result, for details that have to do with the Commodore 64’s character set, called PETSCII.
[ Parent
| on HN ]
Re:A single line of Basic sends readers into a labyrinth
by akkartik on Friday November 30, 2012 @08:31PM
(#4856462)
Is it the same as this C snippet?
main() { while (1) printf("%c", rand()%2 ? '/' : '\\'); }
Edit: Golfed my original snippet down, then put back original after mmphosis's identical translation.
Re:A single line of Basic sends readers into a labyrinth
by activepeanut on Saturday December 01, 2012 @01:03AM
(#4856980)
Small variant:
void main() { while (1) printf("%c", "/\\"[rand()%2] ); }