Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: My first chess program ;-)

Author: Gian-Carlo Pascutto

Date: 14:29:25 05/08/02

Go up one level in this thread


On May 08, 2002 at 17:27:37, Andrew Williams wrote:

>One simple scheme is to generate
>a Most Valuable Victim / Least Valuable Attacker score. Take the value of the
>capturing piece away from the value of the captured piece when you generate a
>capturing move.

You make a common mistake here. The correct way to do MVV/LVA is to take
the value of the captured piece and subtract the _index_ of the capturing
piece.

Try it. It'll run faster.

--
GCP



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.