Author: Gerd Isenberg
Date: 11:47:07 06/13/05
Go up one level in this thread
>>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... My attack generator don't cares as well - filling one or 62 ;-)
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.