Addisonbean / Elementary-Cellular-Automata

Displays elementary cellular automata in the command line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elementary-Cellular-Automata

This is a script to generate elementary cellular automata in the command line.

Example usage:

$ eca --rule 89 --width 41
                    #                    
###################  ####################
                  ## #                   
################# ##  ###################
                # ### #                  
###############   # #  ##################
              ###    # #                 
############# # ####    #################
            #   #  #### #                
###########  ##  # #  #  ################
          ## ###    #  # #               
######### ## # ####  #    ###############
        # ##   #  ##  ### #              
#######   ####  # ### # #  ##############
      ### #  ##   # #    # #             
##### # #  # ####    ###    #############
    #    #   #  #### # #### #            
###  ###  ##  # #  #   #  #  ############
  ## # ## ###    #  ##  #  # #           
# ##   ## # ####  # ###  #    ###########
# #### ##   #  ##   # ##  ### #          
$ eca -w 35 -r 110
                 #                 
                ##                 
               ###                 
              ## #                 
             #####                 
            ##   #                 
           ###  ##                 
          ## # ###                 
         ####### #                 
        ##     ###                 
       ###    ## #                 
      ## #   #####                 
     #####  ##   #                 
    ##   # ###  ##                 
   ###  #### # ###                 
  ## # ##  ##### #                 
 ######## ##   ###                 
##      ####  ## #                 

Todo:

  • add a man file
  • add a height option
  • add an install script

About

Displays elementary cellular automata in the command line


Languages

Language:Ruby 100.0%