Official Release of OliThink 5.7.5 including a Java-GUI

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

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
OliverBr
Posts: 488
Joined: Tue Dec 18, 2007 8:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch
Contact:

Re: Official Release of OliThink 5.7.5 including a Java-GUI

Post by OliverBr » Sat Sep 12, 2020 8:29 pm

Dann Corbit wrote:
Sat Sep 12, 2020 3:47 am
[As long as the updated code is on github, a release is not necessary
Ok, this is great. So I can share my ideas with github.

The idea is to shorten the SEE-loop in two ways:
1) The last capture is the king, but the square is still attacked, so the loop ends here.
2) The value of captured piece is low than the lead (e.G. wP x bQ, bP x wP, even if wP will be captured it won't be enough for white.)

Here is the commit:
https://github.com/olithink/OliThink/co ... 1313784a55
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink

User avatar
towforce
Posts: 10336
Joined: Wed Mar 08, 2006 11:57 pm
Location: Birmingham UK

Re: Official Release of OliThink 5.7.5 including a Java-GUI

Post by towforce » Sat Sep 12, 2020 8:35 pm

OliverBr wrote:
Sat Sep 12, 2020 8:08 pm
towforce wrote:
Fri Sep 11, 2020 11:04 pm
Could the Java version be hosted in a web page? That would make it super-easy to use - just follow a link!
It was hosted on my homepage for many years..
It's a sad story, because security fanatics decided that Java applets were not secure enough and so they vanished... I took OliThink-Applet off my homepage it was nearly impossible to get a browser to run it. I could do it only with Firefox and a lot of configuration.

Perhaps there is a way working with certificates, I just didn't invest anymore because I didn't know if people still wanted it.

PS: The boss of my current job as programmer played the engine when checking the internet for information about me :)

Yes - now you mention it, all the new active web pages (or applications built into a web page) I've seen recently have been using JavaScript rather than Java, and running Java seems to have been permanently disabled in a lot of browsers. Apologies for being behind on that happening.

I used to use Java every day in a previous job (writing code that could run in a printer). The last time I used it was about 4 years ago. We had a requirement to import data from a particular old database, and the only free code I could find that would convert this data format to something we could work with was a JAR I downloaded. It ran on a PC, which obviously needed the Java runtime library installed.

The nearest thing we seem to have right now to a language that can run anywhere is JavaScript: it seems to be usable in more places than most other languages. The increase in cross-platform frameworks is is encouraging as well. JavaScript is not ideal for large projects, or code that needs to run quickly, like a chess program.
The future is more important than the past.

jdart
Posts: 3992
Joined: Fri Mar 10, 2006 4:23 am
Location: http://www.arasanchess.org

Re: Official Release of OliThink 5.7.5 including a Java-GUI

Post by jdart » Sat Sep 12, 2020 11:39 pm

running Java seems to have been permanently disabled in a lot of browsers
Chrome has disabled the API that Java used to run inside the browser. Other browsers have implemented some restrictions. This is largely for security reasons. Java, along with similar technologies like Flash which deliver code to run client-side in the browser, has been the source of hundreds of security bugs over the years.

OliverBr
Posts: 488
Joined: Tue Dec 18, 2007 8:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch
Contact:

Re: Official Release of OliThink 5.7.5 including a Java-GUI

Post by OliverBr » Sun Sep 13, 2020 4:08 pm

OliverBr wrote:
Sat Sep 12, 2020 8:29 pm
The idea is to shorten the SEE-loop in two ways:
1) The last capture is the king, but the square is still attacked, so the loop ends here.
2) The value of captured piece is low than the lead (e.G. wP x bQ, bP x wP, even if wP will be captured it won't be enough for white.)
Actually, 1) lead me to a bug in SEE. fixed it and of course I cannot keep quiet with a clear bug, so I released OliThink 5.7.7.

Line 884 in 5.7.6 was:

Code: Select all

u64 attacks = attacked(t, 0) | attacked(t, 1);
Normally the method "attacked" collects all king attackers for check, but this time it's not the correct method. Why? Because the kings are not included as they never can attack the other king.
So now the fix is to collect all non sliding attackers and not forget the king:

Code: Select all

u64 attacks = ((PCAP(t, 0) | PCAP(t, 1)) & pieceb[PAWN])
		| (nmoves[t] & pieceb[KNIGHT]) | (kmoves[t] & pieceb[KING]);
the sliding attackers are added in each loop (like it was before):

Code: Select all

attacks |= (BOCC(t) & BQU) | (ROCC(t) & RQU);
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink

OliverBr
Posts: 488
Joined: Tue Dec 18, 2007 8:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch
Contact:

Re: Official Release of OliThink 5.7.5 including a Java-GUI

Post by OliverBr » Sun Sep 13, 2020 8:51 pm

Bugfix gained about 20 ELO points:

Code: Select all

   # PLAYER            :  RATING  ERROR  POINTS  PLAYED   (%)     W     D    L  D(%)  CFS(%)
   1 OliThink 5.7.7    :      20     11  1591.0    3015  52.8  1017  1148  850  38.1     100
   2 OliThink 5.7.5    :       0   ----  1470.5    3016  48.8   880  1181  955  39.2      60
   3 OliThink 5.7.6    :      -1     11  1461.5    3015  48.5   885  1153  977  38.2     ---

White advantage = 72.78 +/- 4.26
Draw rate (equal opponents) = 39.96 % +/- 0.77
This verifies the ambiguous story about 5.7.6, that it's a change in style. At best.

Since 5.3.3 I made a pact with the devil and started aggressive pruning that did improve general strength, but is bad at tactical positions with quiet moves in the main line.

Those two positions are best evidence:





Older OliThink found those best moves in depth 15/16, but now needs more than 20 plies. While general strength is gaining, it's less tactical "surprising".
What do you think is the better way?
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink

Dann Corbit
Posts: 11509
Joined: Wed Mar 08, 2006 7:57 pm
Location: Redmond, WA USA
Contact:

Re: Official Release of OliThink 5.7.5 including a Java-GUI

Post by Dann Corbit » Mon Sep 14, 2020 4:11 pm

Concerning:

Code: Select all

Older OliThink found those best moves in depth 15/16, but now needs more than 20 plies. While general strength is gaining, it's less tactical "surprising".
What do you think is the better way?
If one engine is pruning a lot more, then I do not think depth is the right measure.
If the pruning engine still finds the answer in the same time, then there is no degradation even in tactical ability.
It's hard to know from a few tactical positions also. Just changing move ordering a hair can throw that kind of thing off.
I would suggest at least 1200 positions at one second each, so 20 minutes for one pass.

Something I have found useful for some rare positions is to use and s curve to prune very little when mobility is close to zero and prune more when it goes over 100 move choices.
I mention this because I know Olithink has mobility data handy.

You might also examine what ShashChess and BlueFish are doing, because their tacitics are very good and yet they prune like mad.
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.

OliverBr
Posts: 488
Joined: Tue Dec 18, 2007 8:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch
Contact:

Re: Official Release of OliThink 5.7.5 including a Java-GUI

Post by OliverBr » Mon Sep 14, 2020 10:25 pm

Dann Corbit wrote:
Mon Sep 14, 2020 4:11 pm
If one engine is pruning a lot more, then I do not think depth is the right measure.
If the pruning engine still finds the answer in the same time, then there is no degradation even in tactical ability.
Of course, it's not only depth, but time. Fact is: More pruning = Later (or even never) such super tactical positions are being found.
This is why they say position 1 (bm Qd3) is invisible for engines.

So now I have implemented a reverse futility pruning into 5.7.7a and the result is surprising:

Code: Select all

   # PLAYER             :  RATING  ERROR  POINTS  PLAYED   (%)     W     D     L  D(%)  CFS(%)
   1 OliThink 5.7.7a    :      24      9  1845.0    3455  53.4  1059  1572   824  45.5     100
   2 OliThink 5.7.7     :       0   ----  1610.0    3455  46.6   824  1572  1059  45.5     ---

White advantage = -1.11 +/- 4.42
Draw rate (equal opponents) = 45.69 % +/- 0.85
This looks good, doesn't it? But 5.7.7a doesn't find position 2 (bm c5) at depth=32 and 138 seconds.

I am not saying that this means it's playing worse chess. While tactically losing impact, it's dominating the game positionally from beginning. The game looks great and it doesn't need tactical (lucky?) strikes.

PS: Gaining ELO against former self doesn't mean it's the same as ELO gain against other engines. It's complicated.

PPS: 5.7.7a doesn't find c5 for position 2 at depth=34 and 1190 seconds..

Code: Select all

34   134 118978 6296456724  e6e3 g3e5 e3b3 e5c3 g2f3 f7g6 f3f4 c3e5 f4e4 e5c3 b3b1 g6g5 e4d3 h7h5 g4h5 g5h5 b1f1 h5h6 d3c2 h6g5 f1g1 g5h5 g1g8 c3d4 c2b3 d4c5 g8f8 h5g5 f8f7 f6f5 f7g7 g5f4 g7g8 
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink

OliverBr
Posts: 488
Joined: Tue Dec 18, 2007 8:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch
Contact:

Re: Official Release of OliThink 5.7.5 including a Java-GUI

Post by OliverBr » Tue Sep 15, 2020 1:53 pm

5.7.7a may not find bm c5 in position 2, but it knows how to play Fruit 2.1:

Code: Select all

   # PLAYER             :  RATING  ERROR  POINTS  PLAYED   (%)     W     D     L  D(%)  CFS(%)
   1 OliThink 5.7.7a    :      22      7  3319.5    6252  53.1  2667  1305  2280  20.9     100
   2 Fruit 2.1          :       0   ----  2932.5    6252  46.9  2280  1305  2667  20.9     ---

White advantage = 12.89 +/- 4.01
Draw rate (equal opponents) = 20.94 % +/- 0.54
Still there are two other, minor improvements (b, c). The next version will probably be released soon. ELO gain is guessed to be about 30.
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink

OliverBr
Posts: 488
Joined: Tue Dec 18, 2007 8:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch
Contact:

Re: Official Release of OliThink 5.7.5 including a Java-GUI

Post by OliverBr » Tue Sep 15, 2020 3:32 pm

OliThink 5.7.8 has been released.

Its main new feature is "reverse futility pruning".

I tried "standard futility pruning" and "razoring" several times before and they never worked well. This "reverse" version, though, is a breakthrough in strength.

It's only a few lines of code, so there is no big change, 1606* lines now.

Code: Select all

if (!ch && !pvnode && d <= 8) {
	w = evallazy(c, mat);
	if (w > beta + 85*d) return w;
}
Here is a little tourney that shows the improvement against different engines:

Code: Select all

   # PLAYER                   :  RATING  ERROR  POINTS  PLAYED   (%)    W    D    L  D(%)  CFS(%)
   1 Scorpio_2.8.8 MCTS+NN    :       8     27   256.0     500  51.2  221   70  209  14.0      73
   2 OliThink 5.7.8           :       0   ----  1178.0    2000  58.9  996  364  640  18.2     100
   3 Fruit 2.1                :     -37     28   223.5     500  44.7  171  105  224  21.0      84
   4 K2 v.087                 :     -57     29   209.5     500  41.9  156  107  237  21.4     100
   5 Arasan 11.7              :    -178     31   133.0     500  26.6   92   82  326  16.4     ---

White advantage = -5.62 +/- 7.44
Draw rate (equal opponents) = 18.99 % +/- 0.90
Still, with more pruning and increasing general strength, the tactical impact on particular positions gets completely lost. Two example positions are in this thread.

Here is an interesting game between OliThink 5.7.8 and Archux 1.1 (a nice derivative of Strelka). Amazing game!



OliThink sacrifices a rook in move 41 and overruns black with an army of pawns.

PS: *Strelka 2.0 with 6114 lines of code may be the second smallest engine > 2500 ELO. Fruit 2.1 has 15320 lines).
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink

OliverBr
Posts: 488
Joined: Tue Dec 18, 2007 8:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch
Contact:

Re: Official Release of OliThink 5.7.5 including a Java-GUI

Post by OliverBr » Thu Sep 17, 2020 3:38 pm

5.7.9 is a special edition because it has beaten idol Glaurung 1.2.1 in a very close battle.

Code: Select all

40/30:
   # PLAYER                :  RATING  ERROR  POINTS  PLAYED   (%)     W     D     L  D(%)  CFS(%)
   1 OliThink 5.7.9        :      13     13  2004.5    4000  50.1  1644   721  1635  18.0      56
   2 Glaurung 1.2.1 SMP    :      12     10  4061.5    8000  50.8  3332  1459  3209  18.2      99
   3 OliThink 5.7.8        :       0   ----  1934.0    4000  48.4  1565   738  1697  18.4     ---

White advantage = 39.31 +/- 3.45
Draw rate (equal opponents) = 18.38 % +/- 0.46
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink

Post Reply