Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: SEE did not help me

Author: Charles Roberson

Date: 10:38:07 08/07/04

Go up one level in this thread



  Your while loop looks fine. My guess is the setup code is buggy.
  setting up at1, de1 ....

   Assuming you call with white to move after 1. e4, d5 and the setup code
  is correct and you call as v = see(d5) before making any move:
      at1 should be 1
      de1 should be 1

      so your while loop should work:
         There is a defender (queen). value = 1000 and value of capturing
         piece is 1000. Thus, value = 0 and at1 drops to 0.
         Thus returning 0.

     Since you get -8000, it seems it thinks it can capture the queen with
    a pawn and the pawn is then captured. Or maybe you have the attacker and
    defender arrays swapped (that would cause -8000).

   Charles



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.