Author: Ed Schröder
Date: 09:25:41 01/04/03
Go up one level in this thread
>I agree that it is still cheap. >but doing it every time you make move or undo move is still more work to do >then doing it every time you make or undo moves. Why do it in make_move and undo_move? As said, do it at the very beginning of a new ply, something like this: current_depth++; // going one ply deeper in the tree i_score=i_score+table[current_depth]; -> update i_score here Generate_Moves(); Get_a_move_till_all_moves_are_done ========== Uri sorry, I mean of course HIGH not i_score, thus: current_depth++; // going one ply deeper in the tree HIGH=HIGH+table[current_depth]; -> update i_score here LOW=LOW-table[current_depth]; -> update i_score here Generate_Moves(); Get_a_move_till_all_moves_are_done Ed
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.