Sting SF 1.0 is out

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

lech
Posts: 1136
Joined: Sun Feb 14, 2010 10:02 pm

Sting SF 1.0 is out

Post by lech »

Sting SF is open source code software (thread) based on Stockfish (2.1.1) without exe-files.
Sting SF is to help detect, impossible to find or time consuming for engines, sacrifices.
Unfortunately, but just Stockfish is very weak to find difficult sacrifices and thus is not a good tool to make any analysis.
Sting SF project should very help you to get a reliable result in analysis.
Sting SF uses the option : “Sacrifice detection” (0 – 8, 8 = default, 0 = disabled).
BTW. I tested a strength (Sacrifice detection = 8). Sting seems to be stronger than Stockfish.

I ask Jim Ablett to compile my project and to make it available for all (thanks in advance!):
www.free.of.pl/c/ccintorun/g/sting.rar

The difference in the code - my idea - is below:

Code: Select all

// Step extra (after step 7) - detection of good sacrifices.
if (    depth >= 8 * ONE_PLY          
        &&  SacrificeDetection // default option = 8    
        && !ss->skipSacrificeDetection
        &&  pos.captured_piece_type() != PIECE_TYPE_NONE
        && !Root
        &&  beta < VALUE_KNOWN_WIN&#41;
    &#123;
       Value q;
       if (&#40;ss-1&#41;->captureValue != VALUE_NONE&#41; q = -&#40;ss-1&#41;->captureValue;
       else if &#40;tte && tte->depth&#40;) >= 8 * ONE_PLY&#41; q = ss->eval;
       else q = ss->eval = qsearch<PV>&#40;pos, ss, -VALUE_INFINITE, VALUE_INFINITE, DEPTH_ZERO&#41;);
       
       TT.store&#40;posKey, VALUE_NONE, VALUE_TYPE_NONE, DEPTH_NONE, ttMove, ss->eval, ss->evalMargin&#41;;
                
       Depth d = depth - depth/10;
       int i = 0;
       Value step = PawnValueMidgame / SacrificeDetection;
       Value v = q;

       while &#40;true&#41;
       &#123;  
         ss->captureValue = v;        
         Value rAlpha = Min&#40;alpha, v + step&#41;;
         if &#40;rAlpha == alpha && d <= depth&#41; break;
         if &#40;d >= depth + depth/10&#41; rAlpha = alpha;
         Value rBeta = rAlpha == alpha ? beta &#58; rAlpha + 1;

         ss->skipSacrificeDetection = true;          
         v = search<PvNode>&#40;pos, ss, rAlpha, rBeta, d&#41;;
         ss->skipSacrificeDetection = false;          
        
         i++;

         if &#40;v > rAlpha && d >= depth&#41; 
         &#123; 
           if &#40;v > alpha&#41; return v;
           if &#40;v >= PawnValueMidgame + step&#41;
           &#123;
             Value bonus = Min&#40;QueenValueMidgame, &#40;v - q&#41; / step * &#40;i * i * SacrificeDetection&#41;);             
             if &#40;v + bonus > alpha&#41;
             &#123;
               TT.store&#40;posKey, VALUE_NONE, VALUE_TYPE_NONE, DEPTH_NONE, ss->bestMove, ss->eval, ss->evalMargin&#41;;
               return v + bonus;
             &#125;            
           &#125;          
         &#125;
         if &#40;v <= rAlpha&#41; return v;         

         d = d + ONE_PLY;         
       &#125;       
    &#125;
 
MikeGL
Posts: 1010
Joined: Thu Sep 01, 2011 2:49 pm

Re: Sting SF 1.0 is out

Post by MikeGL »

I have problem connecting to .pl domains I guess. :(
Can we grab it in mediafire or some other sites with different URL without .pl
User avatar
Ajedrecista
Posts: 1968
Joined: Wed Jul 13, 2011 9:04 pm
Location: Madrid, Spain.

Re: Sting SF 1.0 (Mediafire link).

Post by Ajedrecista »

Hello Mike:
MikeGL wrote:I have problem connecting to .pl domains I guess. :(
Can we grab it in mediafire or some other sites with different URL without .pl
It seems that this file contains the sources. Mediafire link:

http://www.mediafire.com/?jf1omcgkejq1b4d

Enjoy! And thanks to Marek for his effort. Of course, thank you very much to SF team for programming an excellent engine such as StockFish is.

Regards from Spain.

Ajedrecista.
MM
Posts: 766
Joined: Sun Oct 16, 2011 11:25 am

Re: Sting SF 1.0 (Mediafire link).

Post by MM »

Ajedrecista wrote:Hello Mike:
MikeGL wrote:I have problem connecting to .pl domains I guess. :(
Can we grab it in mediafire or some other sites with different URL without .pl
It seems that this file contains the sources. Mediafire link:

http://www.mediafire.com/?jf1omcgkejq1b4d

Enjoy! And thanks to Marek for his effort. Of course, thank you very much to SF team for programming an excellent engine such as StockFish is.

Regards from Spain.

Ajedrecista.
Sorry, i don't see the executable.

Regards
MM
User avatar
Ajedrecista
Posts: 1968
Joined: Wed Jul 13, 2011 9:04 pm
Location: Madrid, Spain.

Mediafire link: 'only' sources until now.

Post by Ajedrecista »

Hello Maurizio:

Marek said in the first post of this topic that he will try that Jim Ablett will do executables for Sting 1.0. In my previous post I reminded that this file onlycontains the source code (well, the only was not include). So, someone has to compile the source code for getting the executable. Please be patient.

Regards from Spain.

Ajedrecista.
MM
Posts: 766
Joined: Sun Oct 16, 2011 11:25 am

Re: Mediafire link: only sources for the momment.

Post by MM »

Ajedrecista wrote:Hello Maurizio:

Marek said in the first post of this topic that he will try that Jim Ablett will do executables for Sting 1.0. In my previous post I reminded that this file onlycontains the source code (well, the only was not include). So, someone has to compile the source code for getting the executable. Please be patient.

Regards from Spain.

Ajedrecista.
Hello,

sorry, i misunderstood.
i hope it will be much stronger than SF.
Community needs new engines generation.

Thank you

Regards
MM
User avatar
Jim Ablett
Posts: 1383
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Sting SF 1.0 is out

Post by Jim Ablett »

Hi Marek,
I ask Jim Ablett to compile my project and to make it available for all (thanks in advance!):
Unfortunately I have an agreement with the Stockfish team only to compile the official Stockfish version,
but I wish you much success with your project.

Jim.
lech
Posts: 1136
Joined: Sun Feb 14, 2010 10:02 pm

Re: Sting SF 1.0 is out

Post by lech »

Jim Ablett wrote:Hi Marek,
I ask Jim Ablett to compile my project and to make it available for all (thanks in advance!):
Unfortunately I have an agreement with the Stockfish team only to compile the official Stockfish version,
but I wish you much success with your project.

Jim.
Hi Jim,
I expected this.
I realized myself elsewhere.
Now, it is a problem of all users only. Not mine. :(
Marek

BTW
The ELO of Sting is irrelevant to me.
Sting may be a new generation of engines, but it requires a lot of team work.
I hope that my idea will go to the others.
rodolfoleoni
Posts: 263
Joined: Mon Nov 29, 2010 9:16 pm

Re: Sting SF 1.0 is out

Post by rodolfoleoni »

Jim Ablett wrote:Hi Marek,
I ask Jim Ablett to compile my project and to make it available for all (thanks in advance!):
Unfortunately I have an agreement with the Stockfish team only to compile the official Stockfish version,
but I wish you much success with your project.

Jim.
It's not easy to understand why this agreement could involve the Sting engine. Author has been respectful of glp rules and it's not an "unofficial" Stockfish as many others we recently saw. It's a legal derivative (as well as Tinapa). A fork, not a clone.

I hope Stockfish team will allow you to compile it.
Rodolfo (The Baron Team)
mcostalba
Posts: 2684
Joined: Sat Jun 14, 2008 9:17 pm

Re: Sting SF 1.0 is out

Post by mcostalba »

rodolfoleoni wrote:
Jim Ablett wrote:Hi Marek,
I ask Jim Ablett to compile my project and to make it available for all (thanks in advance!):
Unfortunately I have an agreement with the Stockfish team only to compile the official Stockfish version,
but I wish you much success with your project.

Jim.
It's not easy to understand why this agreement could involve the Sting engine. Author has been respectful of glp rules and it's not an "unofficial" Stockfish as many others we recently saw. It's a legal derivative (as well as Tinapa). A fork, not a clone.

I hope Stockfish team will allow you to compile it.
We asked Jim to not compile sources directly downloaded from our repo to avoid fostering random bianaries of a still in development software. But we have nothing against derived engines of official release: sources based on an officially released version, like Stockfish 2.1.1, and then further modified by the author and, of course, with the name changed. I think Sting belongs to this second group.