Skip to content

Instantly share code, notes, and snippets.

@bFraley
Created September 9, 2016 17:04
Show Gist options
  • Save bFraley/6c603f7a0617c3048b4e7d25b218adf2 to your computer and use it in GitHub Desktop.
Save bFraley/6c603f7a0617c3048b4e7d25b218adf2 to your computer and use it in GitHub Desktop.

Revisions

  1. bFraley created this gist Sep 9, 2016.
    21 changes: 21 additions & 0 deletions logo-example.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    # Logo is a list of lines used in print_logo below.
    logo = [
    ' _ _ _ ',
    '| | _____ ___ __ (_)_ __ (_) __ _ ',
    '| |/ _ \ \/ / `_ \| | `_ \ | |/ _` |',
    '| | __/> <| | | | | | | || | (_| |',
    '|_|\___/_/\_\_| |_|_|_| |_|/ |\__,_|',
    ' |__/'
    ]

    # Printing helper functions
    # -------------------------

    # Print game logo.
    def print_logo():
    os.system("clear")
    print('\n')

    for line in logo:
    print(line)