Author: Christophe Drieu
Date: 11:41:56 04/13/03
Go up one level in this thread
On April 13, 2003 at 12:22:15, Martin Bauer wrote: >Hi all, > >I am looking for an easy to understand code how to generate only legal moves >when king is in check. I think there must be many optimizations when king is in >check... > >Language C, Pascal or Basic like or psedocode. I want to see the principles of >generating legal moves. > >Bye > >Martin Hi, with my engine (T.rex), T.rex can take a king if there is 2 king on the board (to avoid re-capture of king). It is not legal moves, but this works and it is very simple to write.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.