Befunge Trace

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

Befunge programs are written in a two-dimensional grid that wraps around horizontally and vertically. Execution starts in the top-left corner, moving right. When the program encounters a 'v', '^', '>', or '<', execution changes direction accordingly. When the program encounters a '@', execution stops. A program may loop indefinitely.

Trace the paths for the simple Befunge programs below, marking traveled spaces with a '.'. The programs below are all 15x15 in size.

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

        v      
               
    v   <      
               
v   <   >    v 
               
               
>       ^      
               
    v        < 
@              
    >   v      
               
               
^       <      

Sample output:

........v      
        .      
    v...<      
    .          
v...<   >....v 
.       .    . 
.       .    . 
>.......^    . 
             . 
    v........< 
@   .          
.   >...v      
.       .      
.       .      
^.......<      

Sample input:_

 ^             
               
               
    <    v     
               
               
               
               
    ^    >     
               
               
               
               
 <       ^     
               

Sample output:

.^             
               
               
....<    v.....
    .    .     
    .    .     
    .    .     
    .    .     
....^    >.....
         .     
         .     
         .     
         .     
.<       ^.....
 .             

Sample input:_

     v         
 v        <    
               
     >    ^    
               
               
   ^    >      
               
               
               
 >      ^      
               
               
   <  @        
               

Sample output:

.....v         
 v........<    
 . . .    .    
 . . >....^    
 . .           
 . .           
...^    >......
 .      .      
 .      .      
 .      .      
 >......^      
               
               
...<  @........
   .           

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1Histocrat1270.18642016/08/16 02:12:380B / 48B / 73B

Perl _

RankUserSizeTimeDateStatistics
1Hem1450.05572016/06/27 19:07:080B / 51B / 92B

Python _

RankUserSizeTimeDateStatistics
1hallvabo1430.11882015/10/01 05:24:220B / 75B / 58B

J _

RankUserSizeTimeDateStatistics
1I., S.1320.61752012/09/23 07:16:040B / 49B / 79B

K _

RankUserSizeTimeDateStatistics
1twobit780.05622012/09/24 21:48:330B / 19B / 57B

sed _

RankUserSizeTimeDateStatistics
1tails1640.04372015/12/30 15:17:030B / 26B / 126B
2%201960.05402015/12/28 15:32:230B / 27B / 148B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs (cheat)2080.08662015/10/05 01:58:40130B / 2B / 69B

z80 _

RankUserSizeTimeDateStatistics
1fsystem690.03212012/10/22 13:56:2034B / ?B / ?B

Language Ranking_

RankLangUserSizeScore
1z80fsystem6910000
2Ktwobit788846
3RubyHistocrat1275433
4JI., S.1325227
5Pythonhallvabo1434825
6PerlHem1454758
7sedtails1644207
8Brainfuckmitchs (cheat)2083317

return top