Skip to content

Instantly share code, notes, and snippets.

@encukou encukou/obrazek.py
Created Mar 11, 2019

Embed
What would you like to do?
def obrazek(level):
if level == 0:
return """
~~~~~~~
"""
elif level == 1:
return """
+
|
|
|
|
|
~~~~~~~
"""
elif level == 2:
return """
+---.
|
|
|
|
|
~~~~~~~
"""
elif level == 3:
return """
+---.
| |
|
|
|
|
~~~~~~~
"""
elif level == 4:
return """
+---.
| |
| O
|
|
|
~~~~~~~
"""
elif level == 5:
return """
+---.
| |
| O
| |
|
|
~~~~~~~
"""
elif level == 6:
return """
+---.
| |
| O
| --|
|
|
~~~~~~~
"""
elif level == 7:
return """
+---.
| |
| O
| --|--
|
|
~~~~~~~
"""
elif level == 8:
return """
+---.
| |
| O
| --|--
| /
|
~~~~~~~
"""
else:
return """
+---.
| |
| O
| --|--
| / \\
|
~~~~~~~
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.