Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Pseudo Code

Author: Steve Maughan

Date: 12:40:24 12/27/04

Go up one level in this thread


The basic idea is to prune, or reduce the search depth, of moves that have had
little success in the past.  This pseudo code may help:

   make_move;
   if (moves_made_already > 3)
      and (not_in_check)
      and (opponent_not_in_check)
      and (move_does_not_attack_opponents_king)
      and (history_value * 128 < best_history_value_from_this_node)
   then
     prune or reduce_depth;

As I'm sure you can imagine the "3" and "128" values can be sources of
experimentation.

I hope this helps!

Regards,

Steve



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.