[Haskell] Haskell Chess
smazanek at steffen-mazanek.de
Sun Mar 18 10:05:26 EDT 2007
I got a lot of interesting and useful comments on my posting
about Haskell Chess. Somebody suggested using the program
for benchmarks. Several people asked me to open the program
for contributions. And others were just interested in the exercises.
It is probably the best to branch the development, so that we
have a teachers' and a hackers' version (ease of understanding
and learning paradigms vs. efficiency and implementation of
full ruleset). I will do the necessary steps next week (svn, etc).
Somebody already offered help for cabalizing hsChess.
Several people asked me for the exercises so I started the wiki
on this topic. I will add more content when I am back to office.
Every contribution and discussion is welcome.
Steffen Mazanek schrieb:
> I recently implemented Chess in Haskell. The implementation is not
> very efficient, but pretty straightforward from a purely functional
> point of view. Simple mate problems can be solved. Have a look at
> I used this implementation for Haskell exercises and the
> students liked it - probably because of the fact, that it is possible
> to write a real Chess program in about 200 lines of code.
> I guess implementing such a game is a good thing in Haskell
> didactics, in particular the game can easily be divided in several
> completely independent modules (board data structure and stuff,
> move generator, gametree and minmax algorithm), there are
> quick results and the students can experiment a lot. A nice
> thing to tell them is the fact, that many of the implemented
> functions are not Chess-specific at all, in particular the generation
> of the gametree and the application of the minimax algorithm
> can be easily generalized.
> If somebody is interested I gladly provide the used project
> definition and the particular work orders (in German only).
> Best regards,
> Steffen Mazanek
More information about the Haskell