Elementary Cellular Automaton

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

See http://mathworld.wolfram.com/ElementaryCellularAutomaton.html
Given a rule number, output the first 16 steps
of its evolution, as in 2012 IOCCC entry
http://www.ioccc.org/years.html#2012_konno
(but that one took command line argument)

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

30

Sample output:

               #               
              ###              
             ##  #             
            ## ####            
           ##  #   #           
          ## #### ###          
         ##  #    #  #         
        ## ####  ######        
       ##  #   ###     #       
      ## #### ##  #   ###      
     ##  #    # #### ##  #     
    ## ####  ## #    # ####    
   ##  #   ###  ##  ## #   #   
  ## #### ##  ### ###  ## ###  
 ##  #    # ###   #  ###  #  # 
## ####  ## #  # #####  #######

Sample input:_

109

Sample output:

               #               
############## # ##############
             #####             
############ #   # ############
           ### # ###           
########## # ##### # ##########
         #####   #####         
######## #   # # #   # ########
       ### # ##### # ###       
###### # #####   ##### # ######
     #####   # # #   #####     
#### #   # # ##### # #   # ####
   ### # #####   ##### # ###   
## # #####   # # #   ##### # ##
 #####   # # ##### # #   ##### 
 #   # # #####   ##### # #   # 

Sample input:_

101

Sample output:

               #               
############## # ##############
             ####              
############    # #############
           # ## ##             
########## ## ## # ############
         ## ## ####            
########  ## ##   # ###########
       #   ## # # ##           
###### # #  ###### # ##########
     #####       ####          
####     # #####    # #########
   # ### ##    # ## ##         
## ##  ## # ## ## ## # ########
 ## #   #### ## ## ####        
  ### #    ## ## ##   # #######

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1Histocrat960.04932019/01/28 06:19:530B / 46B / 48B

Perl _

RankUserSizeTimeDateStatistics
1tails940.03572019/01/28 17:23:350B / 41B / 52B

Python _

RankUserSizeTimeDateStatistics
1leonid1240.11832013/10/09 10:48:030B / 61B / 56B
2hallvabo1280.09642012/10/26 10:52:290B / 72B / 50B
3rolf1700.16252012/12/31 08:16:120B / 77B / 91B

JavaScript _

RankUserSizeTimeDateStatistics
1nn1010.06452012/12/27 17:21:300B / 51B / 49B

J _

RankUserSizeTimeDateStatistics
1I., S.620.09372012/10/20 20:13:400B / 22B / 37B

C _

RankUserSizeTimeDateStatistics
1tails1170.03162019/01/30 22:00:250B / 67B / 50B
2nn1200.03242012/12/27 17:38:200B / 58B / 61B

Haskell _

RankUserSizeTimeDateStatistics
1henkma1390.04972013/01/03 21:15:100B / 76B / 57B

Bash _

RankUserSizeTimeDateStatistics
1McBusLuck1681.53992019/11/12 03:40:430B / 65B / 72B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1McBusLuck1681.59452019/11/12 03:59:580B / 65B / 72B

Brainfuck _

RankUserSizeTimeDateStatistics
1g33k16950.03232013/01/29 15:23:3845B / ?B / ?B

GolfScript _

RankUserSizeTimeDateStatistics
1tails670.64752012/10/28 15:57:510B / 23B / 43B

Nibbles _

RankUserSizeTimeDateStatistics
1tails300.06442022/02/24 11:52:5623B / 3B / 4B

z80 _

RankUserSizeTimeDateStatistics
1fsystem620.21322012/11/07 01:19:1733B / ?B / ?B

Groovy _

RankUserSizeTimeDateStatistics
1nn1083.59822012/12/27 17:53:160B / 60B / 41B

Language Ranking_

RankLangUserSizeScore
1Nibblestails3010000
2JI., S.624838
3z80fsystem624838
4GolfScripttails674477
5Perltails943191
6RubyHistocrat963125
7JavaScriptnn1012970
8Groovynn1082777
9Ctails1172564
10Pythonleonid1242419
11Haskellhenkma1392158
12BashMcBusLuck1681785
13Bash (builtins)McBusLuck1681785
14Brainfuckg33k1695176

return to the top page