Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Is there a "Best" Chess Programming Language?

Author: Russell Reagan

Date: 16:27:33 06/09/02

Go up one level in this thread


On June 09, 2002 at 08:51:18, Pat King wrote:

>Not using them seems a waste to me... most of the work of move generation,
>validation, and execution is divided up in my piece heirarchy. Polymorphism is a
>great way to reduce complexity (ie if/switch statements), making testing each
>class pretty straightforward.

So instead of having a switch statement with a case for each kind of piece, you
create classes for each piece and each piece object can generate it's own legal
moves?

If this is correct, this might be an interesting way of handling check
extensions or threat extensions.

Russell



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.