| View previous topic :: View next topic |
| Author |
|
Harvey Williamson Site Admin

Joined: 29 Jul 2007 Posts: 5968
Full Name: Harvey Williamson
Location: Media City, UK
|
Posted: Fri Dec 31, 2010 11:01 pm Post subject: Scaramanga is a Clone |
|
|
Scaramanga that played in the last leiden tournament and got a very good result has been proved to be a clone:
| Quote: | I am Mark Lefler, author of the chess program Now. I have examined the source code forwarded me via Don Dailey. The source code is from Now. I shared this source code with someone who said he was named "Chinmay" a year ago. He had offered to run the program for me in a tournament and had some faster hardware than me. He also had a better compiler so I let him compile the program to improve the speed, and he helped test it since he had a quad and I did not. Since I regularly email myself copies of the source code, it is very simple to check my hotmail account to verify the code is the same.
Harvey has accurately describe my past communications with this Chimnay scoundrel. I appreciate Harvey's work on detecting these thieves.
Mark |
He then adds:
| Quote: | they even left in junk, like commented out stuiff from the old Pascal version of NOw!:
Piece := B[batt[bcount]] And 7;
Diff := batt[bcount]-Place;
D := DirA[Diff];
J := batt[bcount];
[22:36:41] Mark: the := in Pascal is what = is in C
[22:37:08] Mark: I copied some routines in from 20 year old Now to convert it and left some of the lines in there commented out |
_________________ www.Hiarcs.com |
|
| Back to top |
|
 |
Graham Banks Full Member
Joined: 10 Sep 2007 Posts: 557
|
Posted: Fri Dec 31, 2010 11:42 pm Post subject: |
|
|
| I copied this into the "Engine Origins" subforum over at CCC. I hope you don't mind. |
|
| Back to top |
|
 |
Harvey Williamson Site Admin

Joined: 29 Jul 2007 Posts: 5968
Full Name: Harvey Williamson
Location: Media City, UK
|
Posted: Fri Dec 31, 2010 11:56 pm Post subject: |
|
|
| Graham Banks wrote: | | I copied this into the "Engine Origins" subforum over at CCC. I hope you don't mind. |
np _________________ www.Hiarcs.com |
|
| Back to top |
|
 |
Harvey Williamson Site Admin

Joined: 29 Jul 2007 Posts: 5968
Full Name: Harvey Williamson
Location: Media City, UK
|
Posted: Mon Feb 07, 2011 6:47 pm Post subject: |
|
|
To add to what Mark says below this guy has been around for a long time. He has also impersonated people like Shay Bushinsky by hacking into his Playchess a/c. He was also present at the recent CCT tournament trying to persuade others to part with their source code.
| mjlef wrote: | You might be able to learn a little from me, the guy whose source code was stolen. Perhaps if you do not act as foolish as me, you can avoid some of this!
In late 2009, I was approached by a "Mike Donnig" via email who offered to operate my chess program "Now" for me in a tournament. he has much faster hardware, and said he had operated Rybka for Vas in a tournament a few years ago. A quick web search showed me this:
http://www.taccl.org/ACCAChampionships/ACCA2008Championships/2008ACCCPart.html
suggesting he was legit. Afterall, how could Vas be fooled?
In the process of getting Now ready for the tournament, he offered to compile Now on his better compiler, so I shared the source code with him, after he agreed to not pass it on to anyone else. I also gave him a remote log on to my computer so it could be used during the torunament as a backup, in case his went down. I know, foolish!
So once he had access, he explored my computer and stole even the old, weaker Pascal version of my program.
So Scaramandga and Almond are my programs (well with a few minor changes, like the author's name!)
So, my suggestions on how not to get taken?
a. Insist on at least a skype phone call with any of your "helpers". I bet something like a strong Indian accent would have been a big flag to me that this guy was not the American he claimed to be. And a video skype call would be even better.
b. Never share source doe or give computer access to anyone you have not met in person.
One more point. Bleow is the first page or so of the C version of Now and Pascal version. If anyone has been given source code that looks like either of these, please let me know.
C version:
// now2.cpp : UUCI chess program Copyright 2007 Mark Lefler
// All rights reserved
//
//#include "stdafx.h"
#include "stdio.h"
#include <stdlib.h>
#include <windows.h>
#include <time.h>
#include "dos.h"
#include <cmath>
#define WHITE 16
#define BLACK 8
#define BOTH WHITE+BLACK
#define PAWN 1
#define KNIGHT 2
#define BISHOP 3
#define ROOK 4
#define QUEEN 5
#define KING 6
#define WHITEPAWN (WHITE+PAWN)
#define WHITEKNIGHT (WHITE+KNIGHT)
#define WHITEBISHOP (WHITE+BISHOP)
#define WHITEROOK (WHITE+ROOK)
#define WHITEQUEEN (WHITE+QUEEN)
#define WHITEKING (WHITE+KING)
#define BLACKPAWN (BLACK+PAWN)
#define BLACKKNIGHT (BLACK+KNIGHT)
#define BLACKBISHOP (BLACK+BISHOP)
#define BLACKROOK (BLACK+ROOK)
#define BLACKQUEEN (BLACK+QUEEN)
#define BLACKKING (BLACK+KING)
#define TO(x) (x & 0xff)
#define FROM(x) ((x>>8) & 0xff)
#define PROM(x) (x>>16)
#define MAXMOVES 64000
#define MAXHISTORY 65536
#define MAXGAMELENGTH 1000
#define MAXPV 101
#define NODEPV 0
#define NODECUT 1
#define NODEALL -1
#define MAXPLY 102
#define PAWNS 0xf
#define KNIGHTS 0x70
#define BISHOPS 0x380
#define ROOKS 0x1c00
#define QUEENS 0xe000
#define TWOQUEENS 0x4000
#define TWOBISHOPS 0x100
Pascal Version (unit nowh.pas)
unit nowh;
{$CODEALIGNMENT 8}
{$DEFINE MOB}
interface
{uses graph;}
type
str2 = string[2];
MoveType = record
From: {shortint}{integer}byte; {From square}
MTo: {integer}{shortint}byte; {Move to square}
Taken: {byte}{integer}byte; {Piece captured}
Promote: {integer}byte; {Promoted piece}
SCEst: integer; {score estimate for move ordering}
{ Rest: ;}
{ Mover: byte; } {Moving piece type}
end;
lparray = array[0..9] of byte;
atackbits = array[0..122] of word;
const
UPPERBOUND = 2;
LOWERBOUND = 1;
EXACTBOUND = 3;
Pawn = 1;
Knight = 2;
Bishop = 3;
Rook = 4;
Queen = 5;
King = 6;
white = 16;
black = 8;
Both = black or white;
PawnValue = 100; {Next is value of pieces}
left = 1;
right = 2;
MATETHREAT = 4;
DUALATTACK = 2;
PRUNINGSEARCH = 8;
NOTCAPTURE = 32;
LASTATTACK = 256;
LASTPASSED = 1024;
PAWNCANPROM = 2048;
RECAPTURE = 4096;
DROPPED = 4096*2;
STANDPAT = 4096*4;
FULLEVAL = 4086*8;
ValueNone = -32000;
ValueMate = 30000;
ValueInf = ValueMate;
ValueEvalInf = ValueMate - 256; |
_________________ www.Hiarcs.com |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|