Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Crafty question

Author: Robert Hyatt

Date: 21:55:12 05/16/05

Go up one level in this thread


On May 16, 2005 at 21:18:19, Kevin K wrote:

>Hello, Dr. Hyatt.
>
>History moves are only non-capture moves in Crafty.
>But your code started for loop of histroy moves from capture move list.
>Capture hash_move is already eliminated and killer moves are non-caputre move
>also.
>
>case HISTORY_MOVES_1:
>    for (movep = tree->last[ply - 1]; movep < tree->last[ply]; movep++)
>
>So, how about changing above for loop like below?
>
>    tree->next_status[ply].last = tree->last[ply];
>  case GENERATE_ALL_MOVES:
>    tree->last[ply] = GenerateNonCaptures(tree, ply, wtm, tree->last[ply]);
>    tree->next_status[ply].phase = HISTORY_MOVES_1;
>  case HISTORY_MOVES_1:
>    for (movep = tree->next_status[ply].last; movep < tree->last[ply]; movep++)


That would certainly work.  Big question is what would it save, in real time.
For example, all of the above is probably in cache anyway.  I'll give it a whirl
and see what happens...



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.