Skip to content

Latest commit

 

History

History

tiny-maze

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

tiny-maze

Based on wonderland-clojure-katas

Alice found herself very tiny and wandering around Wonderland. Even the grass around her seemed like a maze.

alice tiny

This is a tiny maze solver.

A maze is represented by a matrix

[[:S 0 1]
 [1  0 1]
 [1  0 :E]]
  • S : start of the maze
  • E : end of the maze
  • 1 : This is a wall that you cannot pass through
  • 0 : A free space that you can move through.

The goal is the get to the end of the maze. A solved maze will have a :x in the start, the path, and the end of the maze, like this.

[[:x :x 1]
 [1  :x 1]
 [1  :x :x]]

Instructions

  • Run the tests with lein test or automatically with lein test-refresh
  • Make the tests pass!

Hint: It might be a good idea to start with smaller tests.

License

Copyright © 2014 Carin Meier

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.