Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.84 KB

README.md

File metadata and controls

55 lines (41 loc) · 1.84 KB

asciibots-bash

A zero-dependency bash implementation of https://github.com/walsh9/asciibots

See Also

Usage

Simply run the script to print a randomized robot ascii art to stdout

Random

Call the script with a specific 3 or 5 digit hex code to get a particular combination printed to stdout. The final three digits indcate the robot's head, body, and its legs. The id may be preceded with 2 additional digits which will change its eyes and mouth.

ID Examples

             _
            /     T___                 
     .---3-|      |[o]|     
     |      \_    \_-_/     
     | __1__/  o==|ooo|==o  
     ||     \_    |___|
     || _6__/     /| |\
     |||    \_   [_] [_]
     |||
ID: "316"

        __.--- Required (head: 0, body: 5, legs: 9)
       |||    
ID: "13059"
     ||
     ''------- Optional (mouth: 1, eyes: 3)
     ___T_
    | d b |
    |__=__|
}-. /\--o/\ .-{
   " |___| "
      |_|
     (ooo)

ID Examples

Invalid Argument

If the specified argument is not 3 or 5 characters long or is not a valid hex code, the program will fall back to printing a random robot.