Guest User

Maze script

a guest
Jul 30th, 2013
2,983
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3.  
  4. # ______ _ __ __ __ _
  5. # / ____/____(_)___ ____ ___ ____ _____/ /__ / /_/ /_ (_)____
  6. # / __/ / ___/ / __ \ / __ `__ \/ __ `/ __ / _ \ / __/ __ \/ / ___/
  7. # / /___/ / / / /_/ / / / / / / / /_/ / /_/ / __/ / /_/ / / / (__ )
  8. # /_____/_/ /_/\____/ /_/ /_/ /_/\__,_/\__,_/\___/ \__/_/ /_/_/____/
  9.  
  10. from random import choice
  11. from sys import stdout as o
  12. from time import sleep
  13.  
  14. cols = ['\033[30m', '\033[31m', '\033[32m', '\033[33m', '\033[34m', '\033[35m', '\033[36m', '\033[37m']
  15. endcol = '\033[0m'
  16. l = ''
  17. ch = u"╱╲"
  18.  
  19. while True:
  20. l = "%s%s" % (choice(cols), choice(ch))
  21. o.flush()
  22. o.write(l)
  23. o.write(endcol)
  24. sleep(0.01)
RAW Paste Data