This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2011-06-21 13:51:15

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ASCII posts!

SnowGuy wrote:

scimonster wrote:

SnowGuy wrote:

This is not that hard to make, google "ASCII text generator."

Which is why I find it ridiculous that you want credit, since, you are probably using a generator.

The numbers are useful though.

Actually, I'm not using a generator, though I would like to code one. ^^

Oh cool! I bet you could do it in scratch, using lists!

It wouldn't do it properly.  sad

Offline

 

#27 2011-08-04 21:54:34

EzekielE_test
Scratcher
Registered: 2011-04-06
Posts: 9

Re: ASCII posts!

cete wrote:

EzekielE_test wrote:

___________              __   .__       .__    .__       
\_   _____/_______ ____ |  | _|__| ____ |  |   |__| ______
|    __)_\___   // __ \|  |/ /  |/ __ \|  |   |  |/  ___/
|        \/    /\  ___/|    <|  \  ___/|  |__ |  |\___ \
/_______  /_____ \\___  >__|_ \__|\___  >____/ |__/____  >
        \/      \/    \/     \/       \/               \/
   _____                                             
  /  _  \__  _  __ ____   __________   _____   ____ 
/  /_\  \ \/ \/ // __ \ /  ___/  _ \ /     \_/ __ \
/    |    \     /\  ___/ \___ (  <_> )  Y Y  \  ___/
\____|__  /\/\_/  \___  >____  >____/|__|_|  /\___  >
        \/            \/     \/            \/     \/

.
.
what is that?

it huh failed

Offline

 

#28 2011-08-22 06:18:07

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ASCII posts!

Code:

Test:

  o         o                                   o                   
 <|>       <|>                                 <|>                  
 < >       < >                                 < \                  
  |         |      o__ __o/  \o__ __o     o__ __o/  \o__ __o__ __o  
  o__/_ _\__o     /v     |    |     |>   /v     |    |     |     |> 
  |         |    />     / \  / \   < >  />     / \  / \   / \   / \ 
 <o>       <o>   \      \o/  \o/        \      \o/  \o/   \o/   \o/ 
  |         |     o      |    |          o      |    |     |     |  
 / \       / \    <\__  / \  / \         <\__  / \  / \   / \   / \ 
                                                                    
                                                                    
                                                                    
               o       o          __o       __o         o__ __o    
              <|>     <|>         __|>    o/  v\       /v     v\   
              < >     / >           |    /|    <\     />       <\  
    o__ __o/   |      \o__ __o     <o>   //    o/              o/  
   /v     |    o__/_   |     v\     |         /v             _<|   
  />     / \   |      / \     <\   < >       />                 \  
  \      \o/   |      \o/     o/    |      o/        \          /  
   o      |    o       |     <|     o     /v           o       o   
   <\__  / \   <\__   / \    / \  __|>_  /> __o__/_    <\__ __/>

Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#29 2013-03-09 16:16:51

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: ASCII posts!

I'm writing a generator in Python right now.

Sorry for the necropost  tongue

Last edited by OrcaCat (2013-03-09 16:17:07)


     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

#30 2013-03-09 16:26:30

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: ASCII posts!

NO! Unsupported characters in input

What should I put at the top? I know I need something like

Code:

# -*- coding: utf-8 -*-

     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

#31 2013-03-10 08:20:06

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ASCII posts!

Yep!

Code:

# -*- coding: utf-8 -*-

Also, if you're on Unix add:

Code:

#!/usr/bin/python

Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#32 2013-03-10 12:54:16

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: ASCII posts!

Well, I have the code

Code:

# -*- coding: utf-8 -*-
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '!', '#', '[', ']']
blockascii = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '!', '#', '[', ']']
letter = 0
printy = ""
def find(x, y):#find what position x is in y
    
    for i in range(len(y)):
        if y[i] == x:
            return i

print("Welcome to the block ASCII maker by OrcaCat!")
word = raw_input("Enter the word: ").lower()
for i in range(len(word)):
    
    if word[i] in letters:
        printy = printy + (blockascii[(find(word[i], blockascii))])

print(printy)

but now I need all the letters and it may not work side by side since the letters are multiple characters tall.


     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

Board footer