view 7-Haskell/day3.maze @ 100:830140560f70

First successful attempt at maze parsing and solving It struggles with large mazes (and ones with wide "paths") but it can solve the smaller cases. We skip in-route loops, but more optimisation is required to prune more routes and to use more efficient/Haskell-y methods.
author IBBoard <dev@ibboard.co.uk>
date Sat, 13 Jul 2019 21:09:59 +0100
parents
children 1fae0cca1ef8
line wrap: on
line source

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