straight line floodfill SIMPLIFIED

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

Maybe less fun but easier (really? :) than
http://golf.shinh.org/p.rb?straight+line+floodfill
because now you can walk across/over your footprint and may choose whichever direction first.

Options

exec is denied

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

Sample input:_

#######
#   # #
##    #
#.    #
##   ##
#     #
#######

Sample output:

#######
#   #.#
##   .#
#.....#
##   ##
#     #
#######

Sample input:_

####################
#  ##   #    #     #
###          ##   ##
# # #  #  .#      ##
# #  # ## #    # # #
##  ## # #      #  #
##             #   #
##      #    #     #
#   #  # # #    #  #
####################

Sample output:

####################
#  ##   #....#.....#
###..........##  .##
# #.#  #...#......##
# #. # ##.# . .# #.#
## .## # #  . . #..#
## .        . .# ..#
## .    #   .#.....#
#...#  # # #....#..#
####################

Sample input:_

##############################
#  #       #    # #       # ##
###        # #   #      ## ###
# # #  # #  #       #        #
#    #   ####       #   # # ##
#       #        # #        ##
#             ####          ##
#  # ##  #      #        #   #
#               #   ##  ##   #
#   #      #      #    ##. # #
#  #     #   # # #   # #     #
#               # ## ##      #
#   #     ##                ##
#   #     # # ##   #  # #    #
#        #    ##     ###     #
#   #          #      #      #
# # #  #            #       ##
#        # #           ##   ##
#       # ###   #     #  #   #
##############################

Sample output:

##############################
#  #       #....# #.......# ##
###        #.#...# . .  ## ###
#.# #  # #  #.......#........#
#.   #   ####.......#.  # #.##
#.      #........# #........##
#.............####  ..  . ..##
#. # ## .#  ..  #........#...#
#.      .   ..  #.  ##  ##...#
#.  #   .  #......#    ##..#.#
#. #    .#  .# # #   # #.....#
#.      .   .   # ## ##......#
#.  #   . ##................##
#.  #   . # # ##   #  #.#... #
#.      .#    ##     ### ... #
#.  #   .      #      #  ... #
#.# #  #.           #    ...##
#........# #           ##...##
#.......# ###   #     #  #...#
##############################

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid1371.03952011/11/14 07:07:360B / 48B / 84B
2clock2760.21502011/11/11 22:33:320B / 67B / 187B

Perl _

RankUserSizeTimeDateStatistics
1tails1440.04432011/11/14 21:56:050B / 65B / 76B

Python _

RankUserSizeTimeDateStatistics
1niisaka1900.29982011/11/10 19:50:430B / 89B / 88B
2hallvabo1940.07352011/11/09 06:05:240B / 90B / 90B

Scheme _

RankUserSizeTimeDateStatistics
1kaki2500.23732011/11/14 17:41:020B / 95B / 123B
2kaki2450.15282013/03/25 06:17:070B / 89B / 129B

J _

RankUserSizeTimeDateStatistics
1I., S.1080.29822011/11/09 05:45:540B / 27B / 79B

R _

RankUserSizeTimeDateStatistics
1jg103700.50352011/11/12 18:19:520B / ?B / ?B

Vim _

RankUserSizeTimeDateStatistics
1clock960.26722011/11/13 22:52:536B / 45B / 37B
2clock920.36512011/11/15 09:55:416B / 43B / 35B

Language Ranking_

RankLangUserSizeScore
1Vimclock9210000
2JI., S.1088518
3Rubyleonid1376715
4Perltails1446388
5Pythonniisaka1904842
6Schemekaki2453755
7Rjg103702486

return top