Browse Source

Merge pull request #21 from jzaia18/ascii_safe

Makes ascii safer
pull/25/head
Jeffery Russell 4 years ago
committed by GitHub
parent
commit
8262c89e0c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 17 additions and 13 deletions
  1. +1
    -1
      src/asciiArt/bat.txt
  2. +1
    -1
      src/asciiArt/dolphin.txt
  3. +1
    -1
      src/asciiArt/fish.txt
  4. +1
    -1
      src/asciiArt/llama.txt
  5. +1
    -1
      src/asciiArt/pig.txt
  6. +1
    -1
      src/asciiArt/python.txt
  7. +1
    -1
      src/asciiArt/roo.txt
  8. +1
    -1
      src/asciiArt/sheep.txt
  9. +1
    -1
      src/asciiArt/snake.txt
  10. +1
    -1
      src/asciiArt/squirrel.txt
  11. +7
    -3
      src/quote.py

+ 1
- 1
src/asciiArt/bat.txt View File

@ -5,4 +5,4 @@
\_ / `;=/ " \=;` \ _/
`\__| \___/ |__/`
\(_|_)/
" ` "
" ` "

+ 1
- 1
src/asciiArt/dolphin.txt View File

@ -4,4 +4,4 @@
\' ~-`\._
|/~`
. . . . . . .
._.`(._.`(_.`(._.`(._.`(._.`(._.`(._
._.`(._.`(_.`(._.`(._.`(._.`(._.`(._

+ 1
- 1
src/asciiArt/fish.txt View File

@ -10,4 +10,4 @@
) ) / `, .' ( ( `, .'
( ( }/ ) ) }/
) ) ' ( ( '
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

+ 1
- 1
src/asciiArt/llama.txt View File

@ -4,4 +4,4 @@
// ** ll
ll---ll\ llama~
ll ll || ||
^^ ^^ '' ''
^^ ^^ '' ''

+ 1
- 1
src/asciiArt/pig.txt View File

@ -7,4 +7,4 @@
"--.~~~ __/ { } \ }
'"ii"/ \_ \ | __~ "; >"
/ / ""\ |" / /
^^" ^^ ^^"
^^" ^^ ^^"

+ 1
- 1
src/asciiArt/python.txt View File

@ -10,4 +10,4 @@
\ \_/ ____ \ / \
\ / \ \ / /\\
\ / \ \/ / V
\_____/ \___/
\_____/ \___/

+ 1
- 1
src/asciiArt/roo.txt View File

@ -5,4 +5,4 @@
__/ _\ //
'~( '~ )//
_\ '}/
\"--~(/
\"--~(/

+ 1
- 1
src/asciiArt/sheep.txt View File

@ -7,4 +7,4 @@
`. )._\ (\
|// `-,//
]|| //"
hjw "" ""
hjw "" ""

+ 1
- 1
src/asciiArt/snake.txt View File

@ -11,4 +11,4 @@
(^^^^\ __ _,-'^^^^^`. _,'^^)
\^^^^`._,-'^^`-._.'^^^^__^^^^ `--'^^^_/
\^^^^^ ^^^_^^^^^^^_,-' `.^^^^^^^^_/ hjw
`.____,-' `-.__.' `-.___.' `97
`.____,-' `-.__.' `-.___.' `97

+ 1
- 1
src/asciiArt/squirrel.txt View File

@ -8,4 +8,4 @@
\=' .-' _`\ {
`'`;/ `, }
_\ ; }
/__`;-...'--'
/__`;-...'--'

+ 7
- 3
src/quote.py View File

@ -37,9 +37,13 @@ def print_message(message, ascii_file = None):
if ascii_file != None:
filepath = '/'.join(INPUT_FILE.split('/')[:-1])
filepath += "/asciiArt/" + ascii_file
f = open(filepath, 'r')
print(f.read())
f.close()
if (os.path.exists(filepath)):
f = open(filepath, 'r')
print(f.read())
f.close()
else:
print(module.input_file_with_new_line(
ASCII_ART[random.randint(0,(len(ASCII_ART) -1))]))
else:
print(module.input_file_with_new_line(
ASCII_ART[random.randint(0,(len(ASCII_ART) -1))]))

Loading…
Cancel
Save