Author: Albert Bertilsson
Date: 14:13:22 05/19/03
Go up one level in this thread
A good undo-move will give you a speed boost perhaps between 5-20% but it takes some time to do it right. Computers are really, really good at repetetive things like doing 60 copies so your data structures need to be quite big before undo-move really gives a good speed improvement. If you just would like to try out chess programming start with the copy version, as it will allow you to try many other things out in the time you save on writing the undo-move function. If you on the other hand know that you really want to do it seriously you'll want the undo-move sooner or later and developing both the do-move and the undo-move at the same time will probably save you some debugging time. Anyway I'd recomend you using the copy method when developing undo-move to compare that the board you just do-moved and undo-moved actually is exactly the same as the copied version. /Albert
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.