Re: Games_Chess with Fischerandom implementation

From: Date: Wed, 14 Feb 2007 15:30:23 +0000
Subject: Re: Games_Chess with Fischerandom implementation
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-45645@lists.php.net to get a copy of this message
Erik Cederlöf wrote: > Hello Pear-devs! > I hope this is the right forum for my question. > > I have looked at package Games_Chess, and am planning to implement it > on my chess-community (1000 active chess-players), and in the future > replacing my current chess-"motor" for checking validity of moves on > the site entirely. > > However it would be great to have the possibility of playing > Fischerandom (Chess960). I see that it is planned for future release! > Has someone started working on this feature, and is it planned for > realease sometime soon? If not, could someone give me a few pointers > as to which methods needs overriding, so I can maybe develop the > functionality myself? Hi Erik, I'd be happy to help you get started. As I understand it, Fischer Random basically has a different starting position, and different castling rules? What you would want to do is override the method for setting up a blank starting position for a brand new game (existing games have FEN which will do just fine for defining the position without any changes to the code), and the code that determines whether O-O and O-O-O are valid moves, as well as the code that actually does the castling. Let me know if you need more specific information than this. Thanks, Greg

« previous php.pear.dev (#45645) next »