Author: leonid
Date: 10:00:33 11/23/99
Go up one level in this thread
On November 23, 1999 at 11:24:18, José Carlos wrote: >On November 22, 1999 at 19:05:13, leonid wrote: > >>Hi! >> >>Was puzzled few times by finding that many logics use illegal moves and >>succesfully. Until now I used this kind of moves only in the ply zero. Expect to >>rewrite my logic completelly with usage of illegal moves in every ply. Until now >>was too busy to reach this programming. But before I even start, I have one >>doubt. Do really games, that use illegal moves, goes with the same moves for the >>ply zero and one? Or do they use on ply one, for instance, legal moves for some >>reason? I am asking this because ply zero and one, anyway, are responsable for >>the biggest par of the speed in the game. >> >>Thanks for response, >>Leonid. > > I'm not sure if I've understood you, but I'll tell you what I do: my MakeMove >function checks for legality, and undoes the move if it is illegal. So I >generate illegal moves, but unmake them even before finishing making them. In >that case case, my Makemove function returns false, and I know I must go for the >next one in the list. > > José C. For me the usage of the legal moves in the ply is where the legality of all moves are checked before their usage in given ply. The other way to proceed is to find the moves recognizing only that this piece can make certain move. You don't check immidiatelly if your king will be under the fire after the move execution. Illegal move is rejected when in the next ply was found that king was captured. I have the impression that you make you logic work exactly in the same way like me. This make me feel better. But, after what I could understand, many people use illegal moves in their logics. In mine illegal moves are present only in the lowest ply (ply zero), in all upper plys, legal moves. Would like to know if those who use illegal moves are forced to use, anyway, legal moves in the ply one and zero. It sound to me illogical (in this moment) that somebody could use in the ply 1 illegal move. It can slow everything down tremendously. Also ply zero and one are the most important factors in the speed of every logic as such. Leonid.
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.