Author: Tord Romstad
Date: 03:01:34 12/27/03
Go up one level in this thread
On December 26, 2003 at 18:16:51, Russell Reagan wrote: >On December 26, 2003 at 07:28:52, Tord Romstad wrote: > >>>I'm thinking about starting a replacement to Terra with a 180 degree different >>>approach. Combined bitboard and 16+16 board, more knowledge intensive, another >>>search approach and possibly some learning abilities. >> >>I'm heading towards the same spot, but from the opposite direction. :-) > >Heh, same here, but from the opposite opposite direction :-) I recently played >with the idea of combining bitboards and a 16x16 board. It is suprising how >little the overhead required to do that is. You just have to add a little >overhead to your make/undo routines, and then you can use the 16x16 stuff or >bitboards, whichever is more advantageous for the given problem at hand. >Ideally, I would like to have an engine with compiler switches that would allow >me to toggle various things on and off. For instance, on 32-bit hardware I could >compile it to use the 16x16 move generator, but on 64-bit hardware I might want >to use the bitboard move generator. It would be very nice to be able to make a >change like that by adding a #define to the code. Then you could compile it for >PDA, 32-bit, or 64-bit and have it run fast on anything. I am trying to do the same, but I am beginning to get annoyed by the many "#if defined"s and other compiler directives everywhere in my source code. It makes the code much harder to read and maintain. Right now I am considering a more radical way to do this. Instead of writing all the low-level code for move-generation, making and unmaking moves and similar stuff by hand, I could write a Lisp program which generates the necessary C or assembler code. In the Lisp program I would make it possible to configure which data structures should be used, and also things like the size and shape of the chess board and the movement of the various pieces. This would make it almost trivial to modify my engine to play different chess variants. As I mentioned earlier in this thread, I am interested in hexagonal chess. Some time in the future I also hope to create a shogi program. Tord
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.