SwirlyMyself

2006-05-14T19:11:20+00:00

Haskell as a puzzle Solver

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.

Comments

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) am 2006-05-15T07:09:47+00:00
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
#2 Joachim Breitner (Homepage) am 2006-05-15T17:31:41+00:00

Have something to say? You can post a comment by sending an e-Mail to me at <mail@joachim-breitner.de>, and I will include it here.