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

I was originally going to post the program makelegal which is a Tk GUI for creating the Legal.pm module.  But it would have taken too much space, which I was out of already after posting the two files above.  The makelegal program consists of several modules, Icons.pm, Legal.pm (the same one above) and Gui.pm, all of which are necessary for constructing the chessboard as a Tk app.  You can imagine that Icons.pm itself takes up a huge amount of space, as it contains the images for each piece!

I have to admit, I'm a little disappointed by both of these comments.  I thought more people would be interested in the program itself (I've been having fun trying it on different combinations of pieces, myself), but the feedback is more along the lines of "I'm not going to waste time trying your program, but let me point out how you should have done it instead!"

So if you or anyone wants the code for the Tk part of it, just message me, and I'll email it, or send a link or something.  You'll understand, I trust, why I don't post it for more people to criticize.


@ARGV=split//,"/:L"; map{print substr crypt($_,ord pop),2,3}qw"PerlyouC READPIPE provides"
  • Comment on Re^2: "Attack" -- Find Solutions for N Non-Attacking Chess Pieces

Replies are listed 'Best First'.
Re^3: "Attack" -- Find Solutions for N Non-Attacking Chess Pieces
by Tchai (Initiate) on Jan 05, 2009 at 00:09 UTC

    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

      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$..$/