time of generating moves
Posted: 08 Jul 2005, 01:56
Movei in the past always generated moves immediately after making moves before calling alphabeta.
I decided to change it and to generate moves only inside of alphabeta because it is possible that I do not need generating the moves in order to prune earlier.
The question is when to generate moves and I will try to do it as late as possible.
generating moves in the beginning of alphabeta is not equivalent to generating moves after making move before calling alphabeta.
The reason is that sometimes I call alphabeta not after making move and generating the move was already done.
I think to have some flag that tell me if generating moves was already done in the relevant path in order to save generating moves and I wonder what other programs do.
I tried to understand what fruit does about it and I did not see that it has such flag.
Uri
I decided to change it and to generate moves only inside of alphabeta because it is possible that I do not need generating the moves in order to prune earlier.
The question is when to generate moves and I will try to do it as late as possible.
generating moves in the beginning of alphabeta is not equivalent to generating moves after making move before calling alphabeta.
The reason is that sometimes I call alphabeta not after making move and generating the move was already done.
I think to have some flag that tell me if generating moves was already done in the relevant path in order to save generating moves and I wonder what other programs do.
I tried to understand what fruit does about it and I did not see that it has such flag.
Uri