Computer Chess Club Archives




Subject: Unmake move v copy the board

Author: Hugh Cumper

Date: 08:11:55 01/24/99

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?

This page took 0.04 seconds to execute

Last modified: Thu, 07 Jul 11 08:48:38 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.