Rebel wrote:zamar wrote:Rebel wrote:
Here is the deal, provided a programmer already has an engine and he wants to copy code from another engine:
Why would anyone want to copy code from another engine? Copyright laws in most Western countries prohibit copying anything without author's permission.
IPPO is freeware.
I said
without author's permission. If the writer of the program has explicitly given permission to copy code then it's of course okay (assuming he didn't copy the code from another source).
Reading another person's engine and writing your engine by using similar ideas is of course okay. But resulting functions, semantics, arrays are going to very different.
Here is an example that proofs you wrong, at least if you think I did nothing wrong, which I think you do
2-3 years ago I went through the Fruit source code because of the raging Rybka debate and I found something I did not have, penalizing a trapped bishop on the 6th rank. So I took it and it resulted in the following code.
Code: Select all
if (board[A6]==WB && board[B5]==BP) score=score-64;
if (board[H6]==WB && board[G5]==BP) score=score-64;
if (board[A3]==BB && board[B4]==WP) score=score+64;
if (board[H3]==BB && board[G4]==WP) score=score+64;
My own code, I copied nothing from Fruit. However, compare this with the Fruit source code, 100% identical, not only semantically equal, even code wise equal.
Did I plagiarize Fruit ?
You need to use some common sense: four lines in context of chess program is meaningless amount of code. It might happen just by accident.
Some examples:
- If two books on the same subject have a same sentence or even multiple sentences in a row, it's not yet considered copying.
- If one page is exactly similar, it's already considered copying.
- Rewriting the book by slightly modifying each sentence is considered copying.
- Writing a similar book, but bringing in your own ideas and expressing old ideas in your own way is fully legal. But in that case you won't find 30 identical sentences in row. That's statistically impossible.
The law is very clear that copying other person's work without his permission is illegal. Why do you want to create confusion?