Even it the 8-queens puzzle is often used to illustrate the recursivity principle, I never tried to solve it myself. I only wrote my N-queens solution recently (using Erlang), and was pretty happy to see that list-comprehension is quite good for the principle of generate-and-filter. Oh! and I tried the ESDL library to display the result 🙂 … I was just as excited as the day I did my first openGL tutorial in C.

Advertisements