Langtons Ant

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

Run Langton's ant simulation
http://en.wikipedia.org/wiki/Langtons_ant

input=number of steps
output=squares

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

100

Sample output:

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

Sample input:_

1000

Sample output:

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

Sample input:_

11000

Sample output:

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

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid960.10122011/02/19 00:43:212B / 32B / 59B
2flagitious3850.90662011/02/18 12:38:580B / 240B / 113B

Perl _

RankUserSizeTimeDateStatistics
1tybalt891230.08312011/03/18 02:10:020B / ?B / ?B
2tails1210.04352011/03/18 18:23:300B / 46B / 71B
3tails (tybalt89)1220.04822011/03/18 17:24:470B / 49B / 69B

Python _

RankUserSizeTimeDateStatistics
1hallvabo1390.12292011/02/19 22:51:000B / 70B / 62B
2twobit1530.14322011/03/05 14:08:070B / 80B / 66B
3recursive1760.14892011/03/12 03:23:470B / 83B / 75B
4kotauchi2410.18372011/03/16 01:08:596B / ?B / ?B

Common LISP _

RankUserSizeTimeDateStatistics
1youz2851.20512011/03/18 10:08:340B / 141B / 101B
2kozima2870.72572011/03/17 18:42:290B / 149B / 100B
3kozima2780.78972011/03/18 14:07:130B / 149B / 88B

Arc _

RankUserSizeTimeDateStatistics
1youz2266.93812011/03/18 11:56:260B / 110B / 73B

JavaScript _

RankUserSizeTimeDateStatistics
1nn1890.15342011/02/19 16:05:390B / 85B / 100B

Lua _

RankUserSizeTimeDateStatistics
1twobit2020.07072011/03/07 12:34:380B / 110B / 76B

J _

RankUserSizeTimeDateStatistics
1I., S.940.65412011/02/22 21:02:220B / 30B / 60B
2I., S.930.77032011/05/04 18:35:500B / 28B / 62B

C _

RankUserSizeTimeDateStatistics
1inaniwa(cheat)1590.00572011/03/01 22:02:512B / 76B / 80B
2nn2080.00232011/02/19 16:24:141B / 107B / 100B
3koi2320.00232011/02/19 15:27:410B / ?B / ?B
4inaniwa(cheat)1540.00612011/03/18 15:53:022B / 72B / 80B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai3140.30132011/03/18 11:15:500B / 166B / 123B

Haskell _

RankUserSizeTimeDateStatistics
1rst762210.24102011/02/26 12:17:120B / 109B / 103B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*2710.01512011/03/16 02:23:080B / 159B / 93B
2uru2840.03432011/02/19 16:08:460B / 158B / 111B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*2020.00522011/03/16 02:30:180B / 112B / 87B
2*yuko*1960.03512012/12/01 23:47:450B / 106B / 86B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*890.03022011/03/17 03:49:2442B / 22B / 19B
2*yuko*820.19722011/12/31 19:05:0041B / 23B / 12B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr1727.94702011/03/17 05:34:150B / 84B / 79B
2nn1898.01192011/02/19 22:18:120B / 92B / 91B
3hoozie2517.28782011/02/26 14:36:030B / 118B / 119B

Language Ranking_

RankLangUserSizeScore
1z80*yuko*8210000
2JI., S.938817
3Rubyleonid968541
4Perltails1216776
5Pythonhallvabo1395899
6Cinaniwa(cheat)1545324
7Groovymurky-satyr1724767
8JavaScriptnn1894338
9Fortran*yuko*1964183
10Luatwobit2024059
11Haskellrst762213710
12Arcyouz2263628
13Pascal*yuko*2713025
14Common LISPkozima2782949
15OCamlm.ukai3142611

return top