Swirly Mein Kopf

Sunday, May 14. 2006

Haskell as a puzzle Solver

Haskell

Recently, a friend of mine had a puzzle for me. It was one of the kind with the small playing field and the different-shaped pieces that are always in the way of moving that one piece to that other corner. I failed to do it by hand (haven't tried hard, though, just about half a boring lecture), but Haskell could do it for me in no time. Well, not no, but only a few otherwise boring hours, complete with ASCII-Art output etc.

As I'm currently tutoring students in a computer science class that uses Haskell, I was asked to publish the code. Thus I documented it using literate programming and LaTeX, so if you are interested, have a look at the PDF-Output or the code itself. The text is German, but the code should qualify as English.

Trackbacks


No Trackbacks

Comments

Display comments as (Linear | Threaded)

*Wow, extra geek points for you for creating something useful with Haskell!

There is nothing to give the code colored syntax highlighting, is it? Not when is looked around last year.
#1 beza1e1 (Homepage) on 2006-05-15 09:09 (Reply)
*Well, there is always vim, who can export anything to HTML, although it is not _very_ colorful...
see
http://www.joachim-breitner.de/uni/info2tut06/puzzle.hs.html
#1.1 Joachim Breitner (Homepage) on 2006-05-15 19:31 (Reply)

Add Comment



To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

What is the first name of the owner of this blog? / Wie heißt der Betreiber dieses Blogs mit Vornamen?
 
 
Nach oben