Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Unmake move v copy the board

Author: Bruce Moreland

Date: 13:28:17 01/24/99

Go up one level in this thread



On January 24, 1999 at 11:11:55, Hugh Cumper wrote:

>This may be very simple matter to the old pros. When I first wrote a chess
>program I created a stack of boards for lookahead and copied the current board
>each time I wanted to look further ahead, discarding it again to go back up. I
>suppose I did that because I started writing programs for games like Kalah where
>the board is small and moves are relatively epensive to take back. Recently I
>have seen programs the have one board and store unmake move information in
>addition to move information so the move can be retracted. I am trying to think
>which is more efficient but I can't decide. Has anyone worked this out
>theoretically or practically?

I think it is purely an implementation specific issue.  Try it both ways and use
the one that is faster.  I use an explicit "unmake" because it works better for
me.

bruce



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.