A robot trying to escape from a maze using GA
Haskell Shell
Latest commit 9ed48d2 Aug 8, 2014 @mihaimaruseac Update README.rst
Permalink
Failed to load latest commit information.
Maze Bring code up-to-date with haskell-platform. Feb 11, 2013
res New logo May 13, 2011
Main.hs Fixed main function May 14, 2011
Makefile Reorganized tree May 13, 2011
Maze.hs Style fixes May 16, 2011
README.ro Wrong information in README May 16, 2011
README.rst Update README.rst Aug 8, 2014
plot.sh Script to plot statistics May 16, 2011

README.rst

Robot in a Maze

A. About

This is a homework for the Machine Learning Course that I am taking right now at my University.

The homework uses genetic algorithms in order to enable a robot to find its way out of a randomly generated maze.

The assignment is done in Haskell.

B. Usage

Run make run to build and start the application. The GUI is pretty simple to use.

The GUI shows a maze and each robot as it tries to go out of the maze. It is very funny to watch how the robot gets stuck then a random mutation evolves it to a new strategy and so on.

The application will also dump several informations to a file. Use ./plot.sh to plot them nicely or to learn what is dumped.

The maze was generated with Sidewinder's algorithm. The maximum fitness is somewhere around 100 * (n^2 - t) + 50 * t + 20 * n where n is the size of the maze and t is the length of the escape path.

C. Extra

For another example of GUI (lGTK = Lens and GTK) see https://github.com/divipp/lgtk/tree/master/lgtkdemo/LGtk/Demos/Maze