sting 15

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 15

Post by lech »

Sting is not a toy for machines!
download: http://www.mediafire.com/file/p6k7e4nr8 ... 5.zip/file
Maybe, I can't be friendly, but let me be useful.
Dann Corbit
Posts: 12541
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: sting 15

Post by Dann Corbit »

The distribution seems to be missing benchmark.cpp

I had to make one small change to benchmark.cpp (starting at line 131):

Code: Select all

        else
        {
            Move bestMove; // Added this

            if (!think(pos, limits, moves, bestMove)) // Added parameter to think call
                break;
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
lech
Posts: 1136
Joined: Sun Feb 14, 2010 10:02 pm

Re: sting 15

Post by lech »

Dann Corbit wrote: Mon May 27, 2019 10:04 pm The distribution seems to be missing benchmark.cpp

I had to make one small change to benchmark.cpp (starting at line 131):

Code: Select all

        else
        {
            Move bestMove; // Added this

            if (!think(pos, limits, moves, bestMove)) // Added parameter to think call
                break;
Sorry, and it is the only one change (benchmark.cpp) to the previous version (Sting 14). Thanks Dann!
Maybe, I can't be friendly, but let me be useful.
Dann Corbit
Posts: 12541
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: sting 15

Post by Dann Corbit »

Thanks for the new version. There are some problems that make every engine struggle but sting.
Sting has problems with high core counts, but I realize this is very difficult to test.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
lech
Posts: 1136
Joined: Sun Feb 14, 2010 10:02 pm

Re: sting 15

Post by lech »

The main problem is: how to return a full solution (PV) line?
I added two interesting tools. If you get a good solution line you can use two commands: forward or (and) play.
The first skips PV moves, and the second starts auto-play.
How it works (bold = input lines):

[d]6Q1/8/8/8/8/7k/ppp1p3/brrbK3 w - - 0 1
sting-sf-15
setoption name hash value 1024
setoption name clear hash value true
setoption name threads value 1
position fen 6Q1/8/8/8/8/7k/ppp1p3/brrbK3 w - -
go movetime 7200000

---
info depth 33 multipv 1 score mate 86 lowerbound nodes 494384968 nps 1237459 time 399516 pv g8g1 h3h4 g1h2 h4g4
info depth 33 multipv 1 score mate 86 lowerbound nodes 494384968 nps 1237459 time 399516 pv g8g1 h3h4 g1h2 h4g4
<click Ctrl keyboard button>
stop
go movetime 10000 forward 1 play

h3h4 g1g2 h4h5 g2g3 h5h6 g3g4 h6h7 g4e6 h7g7 e6a2 g7h6 a2a5 h6h7 a5g5 h7h8 g5h4 h8g7 h4h5 g7f6 h5g4 f6e5 g4f3 e5e6 f3f4 e6d5 f4e3 d5d6 e3e8 d6d5 e8e7 d5d4 e7e6 d4c5 e6d7 c5b6 d7c8 b6a7 c8c7 a7a8 c7e7 a8b8 e7d7 b8a8 d7b5 a8a7 b5d5 a7b8 d5c6 b8a7 c6c8 a7b6 c8d7 b6a6 d7c7 a6b5 c7d6 b5c4 d6e5 c4b4 e5d5 b4a4 d5c5 a4b3 c5d4 b3a3 d4d6 a3b3 d6c5 b3a2 c5b6 a2a3 b6b5 a3a2 b5a4 Black is mated

[d]1r6/4k3/r2p2p1/2pR1p1p/2P1pP1P/pPK1P1P1/P7/1B6 b - - 0 1
sting-sf-15
setoption name hash value 1024
setoption name clear hash value true
setoption name threads value 1
position fen 1r6/4k3/r2p2p1/2pR1p1p/2P1pP1P/pPK1P1P1/P7/1B6 b - -
go movetime 7200000

---
info depth 35 multipv 1 score cp 238 nodes 31517744 nps 780064 time 40404 pv e7e6 d5d1 a6a7 b1c2 a7b7 d1d2 b8f8 c2d1 f8h8 d1e2 b7c7 d2d1 h8b8 e2f1 b8d8 f1e2 c7b7 d1d5 d8b8 e2d1 b7d7 d5d2 d7h7 d1c2 h7c7 d2d5 c7d7 c2d1 b8g8 d1e2 d7a7 d5d2 g8h8 d2d1 h8b8
info depth 36 multipv 1 score cp 238 nodes 51226188 nps 803447 time 63758 pv b8b3 a2b3 a3a2
<click Ctrl keyboard button>
stop
go movetime 10000 forward 1 play

c3b3 a6b6 b3c2 b6b2 c2c1 b2e2 d5d1 e2e3 d1g1 e3c3 b1c2 c3c4 c1d2 d6d5 g1b1 d5d4 c2d1 e7d6 b1b6 d6c7 b6b1 c4c3 b1b3 e4e3 d2e2 c3c1 b3a3 c7c6 a3a6 c6b5 a6d6 b5b4 d6b6 b4c3 b6b3 c3c4 b3a3 c4d5 a3a8 c5c4 d1b3 c1c3 b3d1 c3d3 a8a5 d5d6 e2e1 d3d2 d1f3 c4c3 a5d5 d6c7 f3e2 c7b6 d5d8 b6a5 d8a8 a5b4 a8b8 b4a3 b8a8 a3b2 a8e8 d4d3 e2d3 d2d3 e8b8 b2c1 b8b6 d3d2 b6e6 d2a2 e6b6 c3c2 e1e2 a2b2 b6c6 c1b1 e2e3 c2c1q c6c1 b1c1 e3d4 b2b3 d4e5 b3g3 e5e6 g3g4 e6f6 c1d2 f6e5 g4h4 e5d5 h4f4 d5e6 f4g4 e6d7 f5f4 d7c6 f4f3 c6b5 f3f2 b5c6 f2f1q c6d7 f1f6 d7e8 g4e4 e8d7 e4e7 d7d8 f6f8 White is mated

[d]1b6/2p5/1kB5/1PN5/8/3K4/8/q7 w - - 0 1
sting-sf-15
setoption name hash value 1024
setoption name clear hash value true
setoption name threads value 1
position fen 1b6/2p5/1kB5/1PN5/8/3K4/8/q7 w - -
go movetime 7200000

---
info depth 29 multipv 1 score cp -496 nodes 54628172 nps 1118055 time 48860 pv c5d7 b6a5 d7b8
---
info depth 30 multipv 1 score cp -496 nodes 122542132 nps 1097251 time 111681 pv c5b3 a1d1 d3c4 d1c2 c4b4 c2d3 b4a3 d3c3 a3a4 c3c4 a4a3 c4f4 a3b2 f4e5 b2c2 e5e3 c2b2 e3e2 b2c3 e2e1 c3c4 e1f2 b3d4 f2f7 c4b4 f7f8 b4c3 f8c5 c3d3 c5e5 d3c4
<click Ctrl keyboard button>
stop
]go movetime 10000 play forward 1

a1b2 d3c4 b2c2 c4b4 c2d3 b4a3 d3c3 a3a2 c3e5 a2a3 e5e7 a3b2 e7e3 b2a3 e3d3 a3b4 d3d1 b4c3 d1g4 c3d3 g4h3 d3c4 h3h2 c4c3 h2e5 c3d3 e5g7 d3c4 g7g1 c4d3 g1f2 d3c4 f2e2 c4c3 e2d1 c3b4 d1c2 b4a3 c2f5 a3b4 f5g5 b4c4 g5h5 c4d3 h5f7 d3c3 f7e6 c3b4 e6g4 b4c3 g4g6 c3c4 g6d6 c4c3 d6a3 c3c4 a3e7 c4d3 e7e5 d3c4 e5f4 c4c3 f4f7 c3c2 f7c4 c2b2 c4g4 b2c3 draw

[d]7q/b1p5/1p1Npkb1/pPP2ppP/P1P5/3B2P1/5P1R/K3R3 w - - 0 1
sting-sf-15
setoption name hash value 1024
setoption name clear hash value true
setoption name threads value 1
position fen 7q/b1p5/1p1Npkb1/pPP2ppP/P1P5/3B2P1/5P1R/K3R3 w - -
go movetime 7200000

-----
info depth 21 multipv 1 score cp 0 nodes 49296797 nps 642940 time 76674 pv h5g6 h8h2 e1e6 f6e6 g6g7 h2h1 a1b2 h1a8 d3f5 e6f6 d6c8 f6g7 c5c6 g7f6 f5g4 f6e5 b2c3 e5e4 c3d2 e4d4 g4e6 d4e5 e6h3 e5d4 h3e6
info depth 22
info currmove h5g6 currmovenumber 1
<click Ctrl keyboard button>
stop
go movetime 10000 forward 14 play

f5d7 f6e5 f2f3 e5d4 f3f4 g5f4 g3f4 a7b8 f4f5 d4e5 b2b3 e5f6 b3c3 f6e5 d7e6 b8a7 c3d3 a7b8 d3e3 e5f6 e3f4 b8a7 f4g4 a8b8 g4h5 b8a8 h5h6 a7b8 h6h7 b8a7 h7g8 a8b8 g8f8 b8a8 f8e8 a8b8 e8d8 b8a8 d8c7 a7b8 c7b6 b8e5 c6c7 f6g7 c4c5 e5c7 b6c7 a8e4 c5c6 g7f6 c8d6 e4d4 b5b6 f6e7 d6c8 e7f6 b6b7 d4g1 b7b8q g1g7 e6d7 f6g5 c8d6 g5h6 b8h8 g7h8 d6f7 h6h7 f7h8 h7h6 f5f6 h6g5 f6f7 g5f4 c7b6 f4e3 c6c7 e3f2 f7f8q f2g2 c7c8q g2g3 c8a8 g3h4 a8h1 h4g3 f8f3 Black is mated

[d]4q1kn/2Bp1p2/1N1PpPp1/1P2P1P1/2N3b1/6p1/1P4Pb/7K w - - 0 1
sting-sf-15
setoption name hash value 1024
setoption name clear hash value true
setoption name threads value 1
position fen 4q1kn/2Bp1p2/1N1PpPp1/1P2P1P1/2N3b1/6p1/1P4Pb/7K w - -
go movetime 7200000

---
info depth 33 multipv 1 score cp 0 nodes 60821072 nps 723337 time 84084 pv c4a5 g4e2 a5c6 e2d3 c6d8 d3b5 b2b3 b5a6 b6a4 a6b7 b3b4 b7a6 a4c3 g8h7 b4b5 a6b7 c3a4 b7d5 a4c5 h7g8 b5b6 g8h7 b6b7 d5b7 c5b7 e8f8 b7c5 f8e8 c5b7
info depth 34
info currmove c4a5 currmovenumber 1
<click Ctrl keyboard button>
stop
go movetime 10000 play forward 6

b2b3 b5d3 b6a4 d3c2 a4c5 c2d1 b3b4 d1e2 c5e4 e2a6 e4c3 a6b7 b4b5 b7c6 b5b6 c6b7 c3a4 b7a8 a4c5 a8c6 b6b7 c6b7 c5b7 g8h7 b7a5 h7g8 a5c4 g8f8 c4b6 f8g8 b6c8 g8h7 c8a7 h7g8 c7a5 e8f8 a7c8 g8h7 a5b6 h7g8 b6c7 g8h7 c8b6 f8e8 d8b7 e8f8 c7d8 h7g8 b6c4 g8h7 c4e3 h7g8 e3f1 g8h7 f1h2 ---
Maybe, I can't be friendly, but let me be useful.
lech
Posts: 1136
Joined: Sun Feb 14, 2010 10:02 pm

Re: sting 15

Post by lech »

I added the missing source file benchmark.cpp to:
http://www.mediafire.com/file/p6k7e4nr8 ... 5.zip/file
It is the same link (and executable filies) as earlier.

More words about two my new tools for Sting.
It is not the same as the dirty trick "forward-backward" when you skip the moves of solution known from the other sources than PV lines.

Many of you don't like pseudo-draw searching PV lines with a high score.
Many of you want to see complete mate PV lines too.
Thanks to the AUTO-PLAY the problems don't exist.
In the rules of chess there is not any score!

I hope, if you work using a GUI, you have the possibility to auto-play where one engine can play on the same (not clearing earlier) hash.
And for many positions it is better to stop the solution and to skip first obvious good moves.

BTW. Note that the two last very hard Neghina's studies from my previous post can be solved by Sting's auto-play directly without an earlier searching too. :shock: :D
Maybe, I can't be friendly, but let me be useful.
Dann Corbit
Posts: 12541
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: sting 15

Post by Dann Corbit »

Interesting. I am looking forward to trying it
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
lech
Posts: 1136
Joined: Sun Feb 14, 2010 10:02 pm

Re: sting 15

Post by lech »

I added auto-playing only to get the full PV-line (mate or draw), but now I see that it can be used to solve some difficult positions (very long solution) too.

But it still needs some work. There are positions that return ZERO score and they don't like auto-playing way to get the correct solution.
E.g. next difficult Neghina's study:

[d]4b3/5p2/2p4p/P1p1PN2/2pn2P1/P2k4/Pr1npKN1/B7 w - -
A search returns the best 10 moves quickly: 1. Ne1+ Kc3 2. Ng3 Bd7 3. a6 Bc8 4. a7 Bb7 5. Kg2 Ba8 6. Kf2 draw
You can stop solution and skip 10 obvious good moves and start the solution again from the new place but only by searching, because auto-playing gives nothing here.

But it is only a technical problem. I hope I will do it and next Sting will be solving the difficult ZERO positions (very long solution) by auto-playing too.

There is stil only one important question. Is auto-playing used to get solution a dirty trick or not?

In my opinion not! Auto-playing doesn't change rules, parameters of engine, doesn't use an external knowledge.
And why to solve a position searching is to be prefered, and playing not?
Maybe, I can't be friendly, but let me be useful.
Dann Corbit
Posts: 12541
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: sting 15

Post by Dann Corbit »

Storing the answers to common problems is a dirty trick. Any way you can solve it yourself is not.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
Dann Corbit
Posts: 12541
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: sting 15

Post by Dann Corbit »

Storing the answers to common problems is a dirty trick. Any way you can solve it yourself is not.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.