Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Re: Re: Re: Perl Chess Server

by jotti (Scribe)
on May 19, 2002 at 16:32 UTC ( [id://167673] : note . print w/replies, xml ) Need Help??

in reply to Re: Re: Re: Perl Chess Server
in thread Perl Chess Server

Yes, that was exactly what I was looking for. A very good Perl script for running a chess board on one's server. It has a good routine that checks for legal moves. But it is not very user friendly, you have to type the coordinates of the move.

But I have some Javascript code that reads user clicks in the chess board and outputs the very same coordinates (e.g. e2 and e4).

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Perl Chess Server
by strat (Canon) on May 20, 2002 at 12:44 UTC
    On my scratchboard, I've put some code that allows you to enter moves and checks if they are legal (only promotion and castling over threatened fields are not yet implemented). If I've got more time, maybe there will be a cpan-module for it soon.
    If I remove it from my scratchpad, I'll either put it to CPAN or at least to my homepage, and update this message by putting a link here.

    Best regards,
    perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"