Author: Robert Hyatt
Date: 11:10:32 06/13/05
Go up one level in this thread
On June 13, 2005 at 09:45:26, Uri Blass wrote: >On June 13, 2005 at 09:06:57, Robert Hyatt wrote: > >>On June 12, 2005 at 23:05:39, Christopher Conkie wrote: >> >>>....the fact therefore, that Crafty will play with more more than 32 pieces on >>>the board Bob. >> >>If you will cite the specific rule for chess that says "white can never have >>more than 32 pieces, even in composed positions" then I'll fix it since it is >>trivial. But people have always played with oddball positions, and not >>accepting them results in far more email than allowing positions that can not >>really be called "illegal" due to a specific rule anyway... >> >> >>> >>>I honestly cannot see how that can be allowed in console mode using setboard. >>> >>>[D]n1nkn1n1/1n1n1n1n/n1n1n1n1/1n1n1n1n/N1N1N1N1/1N1N1N1N/N1N1N1N1/1N1NKN1N w - - >>>0 1 >>> >>>34 pieces on one board, 32 of them are Knights. >>> >>>Not possible in my view. >>> >>>It is very obvious to me that Crafty does this however. Anyone can try this for >>>themselves. >>> >>>What do you think? >> >> >>I think it is just as legal to have 33 pieces on the chess board, as it is for >>you to stick your foot under a running lawn mower. Whether you should do it or >>not is a different question, however... >> >>Again, can you cite a specific rule that says for any chess position, white can >>never have more than 16 pieces, no more than 8 extra pieces of the same type, >>etc? For games starting in the normal starting position, this can be >>interpreted as true, but not for compositions... > >What about speed? > >I think that allowing more than 10 knights of the same colour may do the program >slower. > >I have in Movei > >int queens[9][2]; >int rooks[10][2]; >int bishops[10][2]; >int knights[10][2]; >int pawns[8][2]; > >If I allow positions with more than 10 knights it may crash. > >If I change my array to make them longer then I waste memory that is not needed >and I guess that the program may be slower and I see no reason to make movei >slower only for people who want to analyze illegal positions because the main >use of the program is for games or analysis of game positions. > >Uri I don't have any such data structures. I have a 64 bit integer with a 1 for each white knight. Crafty doesn't care whether there are zero or 62 of them...
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.