Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: OOP - Not for computer chess?

Author: Gareth McCaughan

Date: 17:36:54 02/14/03

Go up one level in this thread


Matt Taylor wrote:

>>> Unfortunately. I guess they're convinced that the program might decide
>>> to run itself without starting another process. I think Math.sin is
>>> ridiculous.
...
>> Well, how else would you distinguish it from Religion.sin? ;-)
...
> I guess that might be a problem for an AI programmer who -really- wants
> to pass the Turing Test. I would make it a class, personally:
>
> abstract public class Sin
> {
>     // yadda
> }
>
> public class Steal extends Sin
> {
>     // yadda
> }
>
> public class Kill extends Sin
> {
>     // yadda
> }

Classic OO design error. Those should be methods, not classes.
The classes would be things like Theft and Murder, or possibly
Thief and Murderer. :-)

--
g



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.