Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: question about definition of clones

Author: Bo Persson

Date: 14:58:25 08/21/05

Go up one level in this thread


On August 21, 2005 at 05:29:16, Uri Blass wrote:

>On August 21, 2005 at 05:17:47, Joseph Tadeusz wrote:
>
>>If a program shares a single line with any other program it is a clone and
>>may the author be damned in all eternity.
>
>Nonsense
>
>I am sure that almost every program share at least a single line with another
>program.
>
>i++;
>is common line that you can be expect to have in programs.
>
>Uri

It is a clone (copyright infringement) if you have copied that line from another
program. It is not, if you have written it yourself.

For this single line it is hard to prove, so you would probably get away with
it, unless there were eye witnesses present when you copied the code.


However, if your code starts to look exactly like this, you are in trouble :-)


// constants and variables

static /* const */ int PieceActivityWeight = 256; // 100%
static /* const */ int KingSafetyWeight = 256; // 100%
static /* const */ int PassedPawnWeight = 256; // 100%

static const int KnightUnit = 4;
static const int BishopUnit = 6;
static const int RookUnit = 7;
static const int QueenUnit = 13;

static const int MobMove = 1;
static const int MobAttack = 1;
static const int MobDefense = 0;

static const int KnightMobOpening = 4;
static const int KnightMobEndgame = 4;
static const int BishopMobOpening = 5;
static const int BishopMobEndgame = 5;
static const int RookMobOpening = 2;
static const int RookMobEndgame = 4;
static const int QueenMobOpening = 1;
static const int QueenMobEndgame = 2;
static const int KingMobOpening = 0;
static const int KingMobEndgame = 0;

static const bool UseOpenFile = true;
static const int RookSemiOpenFileOpening = 10;
static const int RookSemiOpenFileEndgame = 10;
static const int RookOpenFileOpening = 20;
static const int RookOpenFileEndgame = 20;
static const int RookSemiKingFileOpening = 10;
static const int RookKingFileOpening = 20;



Bo Persson



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.