in reply to Re^2: "Attack" -- Find Solutions for N Non-Attacking Chess Pieces
in thread "Attack" -- Find Solutions for N Non-Attacking Chess Pieces

Hi liverpole,

I'm just yersterday joined to PerlMonks. I like chess, Perl and Tk, so I will glad if you send me an attach or a link (I don't know the better way) of your program makelegal , because I have appreciated your work.

Best regards

Tchai

  • Comment on Re^3: "Attack" -- Find Solutions for N Non-Attacking Chess Pieces

Replies are listed 'Best First'.
Re^4: "Attack" -- Find Solutions for N Non-Attacking Chess Pieces
by liverpole (Monsignor) on Jan 07, 2009 at 23:01 UTC
    Hi Tchai,

    Thanks for your interest.  It's been a long time since I looked at that code, but I've put a link to the files here.  When you run makelegal.pl, it creates a file legal.txt, which can then be used to update Legal.pm by hand.  Once Legal.pm was complete, there was no longer any need for makelegal.pl, of course.

    Let me know if you have other questions and I'll do my best to answer them.


    s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/