Computer Chess Club Archives


Search

Terms

Messages

Subject: Request for code snippet of checking for repetative moves in search()

Author: Michel Langeveld

Date: 02:35:37 11/08/00


int negamax(int depth)
{
   makemovelist();

best = -32767

   for (int i=0; i<movecount; i++)
   {
       make_move(i);
       val = -negamax(depth-1)

       if (val > best)
   }
}



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.