Skip to content

Instantly share code, notes, and snippets.

@letoh
Created December 5, 2012 05:41
Show Gist options
  • Select an option

  • Save letoh/4212701 to your computer and use it in GitHub Desktop.

Select an option

Save letoh/4212701 to your computer and use it in GitHub Desktop.
one-liner maze
#!/usr/bin/python
# -*- encoding: big5 -*-
# http://10print.org/
from random import random as r
print "\n".join(["".join([["\xa2\xac", "\xa2\xad"][int(0.5+r())] for i in xrange(40)]) for j in xrange(24)])
"""
╲╱╱╲╲╱╱╲╱╲╲╲╱╱╲╲╲╱╱╱╱╱╱╲╱╱╲╱╲╲╱╲╱╱╲╲╲╱╲╱
╱╱╱╱╱╲╲╲╱╱╲╱╱╱╱╲╱╲╲╱╱╱╱╲╲╲╱╱╲╱╱╲╲╲╲╲╱╱╲╲
╲╲╲╱╲╱╲╲╱╲╱╱╲╱╱╲╲╱╱╲╲╲╱╲╲╲╲╱╱╱╱╱╲╲╱╱╱╲╱╲
╱╱╱╲╱╱╱╱╲╲╲╲╱╲╱╱╱╱╱╱╱╲╲╲╱╱╱╲╲╱╲╲╲╱╱╲╱╱╲╲
╱╱╱╱╲╱╱╱╲╲╱╱╱╱╱╱╲╲╲╱╱╱╱╱╱╱╱╲╲╲╲╲╱╲╱╲╲╱╲╱
╱╱╲╲╲╱╱╲╱╱╱╱╲╱╱╲╱╱╲╲╱╱╱╱╱╲╲╲╱╱╲╱╲╲╲╲╲╲╲╱
╱╲╱╱╲╱╲╲╲╲╲╱╱╱╲╲╱╲╲╱╲╱╱╱╲╲╲╲╲╱╱╲╲╲╱╱╲╱╱╲
╲╱╲╱╲╲╲╲╲╲╱╲╱╲╱╱╲╲╲╱╲╲╲╱╲╱╲╲╱╱╱╱╲╲╱╲╱╱╲╲
╱╱╱╲╱╲╱╱╲╱╲╲╱╱╲╱╲╱╲╲╱╲╱╱╲╲╲╱╱╱╲╱╱╲╲╱╱╱╲╱
╲╲╲╲╱╱╱╲╱╱╲╱╲╲╱╱╲╱╲╱╲╲╲╱╱╱╲╲╲╱╲╱╲╱╱╱╱╲╲╱
╲╱╲╲╲╱╱╲╲╱╱╱╱╱╲╱╱╲╲╱╲╲╲╱╱╲╲╱╱╲╱╱╲╲╲╲╱╱╲╱
╲╲╱╱╱╱╱╱╱╱╱╲╲╲╲╱╲╱╲╲╱╱╲╲╱╲╲╲╲╱╲╲╲╱╲╲╱╲╲╲
╱╱╱╱╲╲╱╲╱╲╲╱╱╲╲╲╲╲╱╲╱╲╲╱╲╱╲╲╱╱╱╱╱╱╱╲╱╲╲╲
╱╲╱╱╲╲╲╲╲╱╲╲╲╱╱╱╱╱╲╱╲╱╱╲╱╲╲╱╱╲╲╲╲╲╲╱╱╲╲╲
╲╲╱╱╱╱╱╲╲╱╱╱╱╲╲╲╲╲╲╲╲╱╱╱╱╱╱╱╲╲╱╲╱╲╱╱╲╱╱╲
╲╲╲╱╲╱╱╱╲╲╱╲╱╲╲╲╲╱╱╲╲╲╱╲╱╱╱╲╱╱╲╲╲╲╲╲╱╲╲╲
╱╲╲╱╱╱╱╲╲╱╱╲╱╱╱╱╱╱╲╱╲╱╲╲╱╱╲╱╱╲╱╱╲╲╱╱╱╱╱╱
╲╱╲╱╲╲╱╲╲╲╱╲╱╲╱╱╱╲╱╲╱╱╱╲╲╱╱╲╱╱╲╱╲╱╲╲╲╲╲╲
╱╲╱╲╱╱╱╲╲╱╱╱╲╱╲╱╱╱╲╱╲╲╲╱╱╲╱╲╱╱╱╱╱╲╲╱╱╱╱╱
╲╱╲╱╲╱╱╱╱╲╱╱╲╲╱╲╲╱╱╱╱╱╲╱╲╲╱╱╱╲╱╲╲╱╱╱╱╲╱╱
╱╲╱╲╱╱╲╱╱╱╲╱╲╲╱╱╲╲╲╲╲╱╲╲╱╲╲╲╲╲╱╱╱╱╱╱╲╲╲╲
╱╱╱╱╱╲╲╱╱╲╲╲╲╲╱╱╱╱╱╱╱╱╲╲╲╱╱╲╱╲╱╲╱╱╱╲╲╲╲╲
╲╱╱╱╲╲╱╱╱╱╱╲╱╱╲╲╲╲╲╲╲╱╱╱╲╲╲╱╲╱╱╲╲╱╱╱╱╲╲╱
╱╲╲╱╱╲╱╲╱╱╲╱╲╲╲╲╲╱╲╱╲╱╱╱╱╱╲╱╱╱╲╱╲╲╱╱╲╱╲╲
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment