cdani wrote:tttony wrote:Cool!
The source has no license so I guess it's under public domain?
If is the default license, yes. No problem for me.
Damir wrote:I was wondering if you can add parameters to Andscacs like the one Texel has ? I very much like to tweak and tune the engines. The more parameters Andscacs has, the better
You can do it yourself:
* Decide what eval parameter you want to add. See avaluacio.cpp, in the function carregar_fitxer_avaluacions. For example we take this line
BonusAlfilSuportatPerPeo = FerPun(5, 9);
that means Bonus for bishop supported by pawn.
* in es.cpp add something like this more or less in the line 140:
Code: Select all
afout("option name BonusAlfilSuportatPerPeoMg type spin default 5 min 1 max 100\n");
This is only to show the parameter to the user. The "Mg" is a visual reference to middle game, so we will create a parameter to modify the "5". The "9" is the endgame part of the value.
* in es.cpp add something like this
Code: Select all
if (!_stricmp(name, "BonusAlfilSuportatPerPeoMg")) {
int tempv= atoi(value);
if (tempv<= 0)
tempv= 1;
if (tempv> 100)
tempv= 100;
BonusAlfilSuportatPerPeo = FerPun(tempv, PunF(BonusAlfilSuportatPerPeo));
}
You can add it for example under this code:
Code: Select all
if (!_stricmp(name, "LoadHashfromFile")) {
read_hash_binary();
}
So this will change the mg part of the value, not changing the current eg part. If you where modifying the eg part, you have to do:
Code: Select all
BonusAlfilSuportatPerPeo = FerPun(PunI(BonusAlfilSuportatPerPeo), tempv);
That's it!
Anything just ask.
A friend of mine have tried and compile Andscacs with the parameter changes you mentioned, but unfortunately he keeps on getting error message when he try and compile Andscacs.
He uses make.exe from SF compilator in src folder.
If you can, can you give some further instructions on how to compile the source, with the changes you just mentioned ?
What compiler are you using etc ?