Latest Updates:
Page Index Toggle Pages: [1] 2 3 
Topic Tools
Very Hot Topic (More than 25 Replies) Stockfish 9 Released ! (Read 2535 times)
Keano
God Member
*****
Offline


Money doesn't talk, it
swears.

Posts: 2864
Location: Toulouse
Joined: 05/25/05
Gender: Male
Re: Stockfish 9 Released !
Reply #38 - 05/19/18 at 18:11:51
Post Tools
an ordinary chessplayer wrote on 05/15/18 at 14:54:48:
Yes there is this option in ChessBase, but the trick is getting it to be the default when you load the engine, as opposed to changing it each time you load the engine. Read back through this thread, GMTonyKosten gave a simple method for a new engine install, and I gave a slightly harder method for an existing engine.


well I have set my existing engine contempt to 0 and it seems to stay --> options --> engines --> select engine --- advanced

I hope I am right in doing this like, trusting you lot  Wink
  
Back to top
 
IP Logged
 
Jonathan Tait
Senior Member
****
Offline



Posts: 429
Location: Nottingham
Joined: 07/11/06
Re: Stockfish 9 Released !
Reply #37 - 05/16/18 at 12:45:31
Post Tools
an ordinary chessplayer wrote on 05/14/18 at 16:08:45:
Contempt is for practical play, where the engine only plays one side. In analysis mode, we use the engine to examine both sides. When the engine switches from looking at white candidates to looking at black candidates (e.g. spacebar), it will also switch from "contempt for black" to "contempt for white" - a swing in evaluation of 2*contempt for any "normal" move. It's confusing.


ah, that's perhaps why I've found it to be so volatile.

an ordinary chessplayer wrote on 03/02/18 at 02:45:39:
Find the .uci file and add the following line to the [OPTIONS] section:
Contempt=0


sorted, thanks Smiley
  

blog inspired by Bronstein's book, but using my own games: http://200opengames.blogspot.co.uk/
Back to top
WWW  
IP Logged
 
an ordinary chessplayer
Senior Member
****
Offline


I used to be not bad.

Posts: 268
Location: Columbus, OH (USA)
Joined: 01/02/15
Re: Stockfish 9 Released !
Reply #36 - 05/15/18 at 14:54:48
Post Tools
Yes there is this option in ChessBase, but the trick is getting it to be the default when you load the engine, as opposed to changing it each time you load the engine. Read back through this thread, GMTonyKosten gave a simple method for a new engine install, and I gave a slightly harder method for an existing engine.
  
Back to top
 
IP Logged
 
Keano
God Member
*****
Offline


Money doesn't talk, it
swears.

Posts: 2864
Location: Toulouse
Joined: 05/25/05
Gender: Male
Re: Stockfish 9 Released !
Reply #35 - 05/15/18 at 11:32:49
Post Tools
an ordinary chessplayer wrote on 05/14/18 at 16:08:45:
Contempt is for practical play, where the engine only plays one side. In analysis mode, we use the engine to examine both sides. When the engine switches from looking at white candidates to looking at black candidates (e.g. spacebar), it will also switch from "contempt for black" to "contempt for white" - a swing in evaluation of 2*contempt for any "normal" move. It's confusing.


It certainly is confusing. So in Chessbase UCI engine there is an option to set contempt to zero?
  
Back to top
 
IP Logged
 
an ordinary chessplayer
Senior Member
****
Offline


I used to be not bad.

Posts: 268
Location: Columbus, OH (USA)
Joined: 01/02/15
Re: Stockfish 9 Released !
Reply #34 - 05/14/18 at 16:08:45
Post Tools
Contempt is for practical play, where the engine only plays one side. In analysis mode, we use the engine to examine both sides. When the engine switches from looking at white candidates to looking at black candidates (e.g. spacebar), it will also switch from "contempt for black" to "contempt for white" - a swing in evaluation of 2*contempt for any "normal" move. It's confusing.
  
Back to top
 
IP Logged
 
Keano
God Member
*****
Offline


Money doesn't talk, it
swears.

Posts: 2864
Location: Toulouse
Joined: 05/25/05
Gender: Male
Re: Stockfish 9 Released !
Reply #33 - 05/14/18 at 14:47:14
Post Tools
So its better to not have any contempt factor (i.e. set to zero)?

Are we sure on this?
  
Back to top
 
IP Logged
 
tdv
YaBB Newbies
*
Offline


Let's play chess!

Posts: 18
Joined: 03/27/18
Re: Stockfish 9 Released !
Reply #32 - 03/28/18 at 19:43:16
Post Tools
I still wonder what rating it will reach at the end (on a given hardware of course). Obviously it can improve yet in some kinds of positions (queen vs. 3 pieces & so on...).
  
Back to top
IP Logged
 
GMTonyKosten
YaBB Administrator
*****
Offline


Mr Dynamic?

Posts: 2936
Location: Clermont-Ferrand
Joined: 12/19/02
Gender: Male
Re: Stockfish 9 Released !
Reply #31 - 03/02/18 at 10:06:04
Post Tools
brabo wrote on 02/27/18 at 16:46:17:
each time I switch between engines the default setting is restored and I have to do it over again.


I decided to download the 'stock' Stockfish 9 for Windows, set the contempt factor to 0 when creating the UCI and this works fine ... and the contempt factor appears to stay at 0 on my machine whenever I change engines!
I've no idea what the problem was before, maybe the ZIP file was corrupted somewhere along the line?
  
Back to top
WWW  
IP Logged
 
an ordinary chessplayer
Senior Member
****
Offline


I used to be not bad.

Posts: 268
Location: Columbus, OH (USA)
Joined: 01/02/15
Re: Stockfish 9 Released !
Reply #30 - 03/02/18 at 06:03:21
Post Tools
proustiskeen wrote on 03/02/18 at 00:42:13:
if you put a 32 bit exe in 'Program Files' instead of 'Program Files x86' perhaps the OS balks?

Nope. I tried it with your 32-bit stockfish and it ran fine.

Based on TD's and GMTonyKosten's results, I would say that someone tampered with your first effort... Sad
  
Back to top
 
IP Logged
 
an ordinary chessplayer
Senior Member
****
Offline


I used to be not bad.

Posts: 268
Location: Columbus, OH (USA)
Joined: 01/02/15
Re: Stockfish 9 Released !
Reply #29 - 03/02/18 at 03:06:22
Post Tools
I was testing the ChessBase 14 GUI with Stockfish 9, using the same random position as in the command-line session earlier ... position after 1.e4 e5 2.Qh5 Na6. There was nothing unexpected in my results:

Depth Score Bestmove "Engine" (Option)
30 1.41 3.Qxe5+ "Stockfish 9 64" (Contempt=20)
30 1.13 3.Qxe5+ "Stockfish 9 64" (Contempt=0)
30 1.18 3.Bxa6 "Stockfish 9 64 C0"

But since I was online, ChessBase also fed the position to some cloud engines. Be forewarned, it looks like the cloud versions of Stockfish are also using the contempt factor:

Depth Score Bestmove "Engine" 
33 1.35 3.Qxe5+ "Stockfish 9"
27 1.48 3.Qxe5+ "Stockfish 180218"
26 1.05 3.Bxa6 "Komodo 9.02 64-bit"
26 1.04 3.Qxe5+ "Komodo 10.2 64-bit"

  
Back to top
 
IP Logged
 
an ordinary chessplayer
Senior Member
****
Offline


I used to be not bad.

Posts: 268
Location: Columbus, OH (USA)
Joined: 01/02/15
Re: Stockfish 9 Released !
Reply #28 - 03/02/18 at 02:45:39
Post Tools
brabo wrote on 02/27/18 at 16:46:17:
Yes I know it is easy to switch off this contempt factor but each time I switch between engines the default setting is restored and I have to do it over again. Does somebody has an easy fix for that?


Find the .uci file and add the following line to the [OPTIONS] section:
Contempt=0

Mine is at:
C:\Users\redacted\AppData\Roaming\ChessBase\Engines.UCI\Stockfish 9 64.uci
  
Back to top
 
IP Logged
 
proustiskeen
God Member
*****
Offline


Hello from Omaha!

Posts: 594
Joined: 08/11/08
Re: Stockfish 9 Released !
Reply #27 - 03/02/18 at 00:42:13
Post Tools
Does a 64 bit file work?

Edit - if you put a 32 bit exe in 'Program Files' instead of 'Program Files x86' perhaps the OS balks?
« Last Edit: 03/02/18 at 03:28:32 by proustiskeen »  
Back to top
WWW  
IP Logged
 
an ordinary chessplayer
Senior Member
****
Offline


I used to be not bad.

Posts: 268
Location: Columbus, OH (USA)
Joined: 01/02/15
Re: Stockfish 9 Released !
Reply #26 - 03/02/18 at 00:34:14
Post Tools
I think that's the message you get when you try to run a 16-bit .exe on a 64-bit system.

Edited:
I just downloaded from the amazon link.
$ stockfish_9_x32_analysis.exe
Stockfish 9 C0 by T. Romstad, M. Costalba, J. Kiiski, G. Linscott
uci
id name Stockfish 9 C0
id author T. Romstad, M. Costalba, J. Kiiski, G. Linscott

option name Debug Log File type string default
option name Contempt type spin default 0 min -100 max 100
etc.

I am on Windows 10 Home, 64-bit.
  
Back to top
 
IP Logged
 
GMTonyKosten
YaBB Administrator
*****
Offline


Mr Dynamic?

Posts: 2936
Location: Clermont-Ferrand
Joined: 12/19/02
Gender: Male
Re: Stockfish 9 Released !
Reply #25 - 03/02/18 at 00:13:37
Post Tools
proustiskeen wrote on 03/01/18 at 20:13:03:
What version of Windows are you using, Tony?


I'm on Win 10.
From the command line I get: 'stockfish_9_x32_analysis.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.'
  
Back to top
WWW  
IP Logged
 
an ordinary chessplayer
Senior Member
****
Offline


I used to be not bad.

Posts: 268
Location: Columbus, OH (USA)
Joined: 01/02/15
Re: Stockfish 9 Released !
Reply #24 - 03/01/18 at 23:31:05
Post Tools
@brabo - Thanks for pointing out the Contempt. I didn't notice that myself so probably would have made some strange decisions based on it.

@GMTonyKosten - I was pretty sure those errors did not apply to you, but it is hard to think what else might be wrong with your setup, besides a bad compile which you have no control over. I can't download proustikeen's version on this machine, but I can try it when I get home.

It is possible to run the engine from the command line to see if everything is okay. Here is a session I just did on the official release. My commands are in bold. The difference is not quite 20 centipawns, but it's close.

Quote:
$ stockfish_9_x64.exe
Stockfish 9 64 by T. Romstad, M. Costalba, J. Kiiski, G. Linscott
uci
id name Stockfish 9 64
id author T. Romstad, M. Costalba, J. Kiiski, G. Linscott

option name Debug Log File type string default
option name Contempt type spin default 20 min -100 max 100
option name Threads type spin default 1 min 1 max 512
option name Hash type spin default 16 min 1 max 131072
option name Clear Hash type button
option name Ponder type check default false
option name MultiPV type spin default 1 min 1 max 500
option name Skill Level type spin default 20 min 0 max 20
option name Move Overhead type spin default 30 min 0 max 5000
option name Minimum Thinking Time type spin default 20 min 0 max 5000
option name Slow Mover type spin default 89 min 10 max 1000
option name nodestime type spin default 0 min 0 max 10000
option name UCI_Chess960 type check default false
option name SyzygyPath type string default <empty>
option name SyzygyProbeDepth type spin default 1 min 1 max 100
option name Syzygy50MoveRule type check default true
option name SyzygyProbeLimit type spin default 6 min 0 max 6
uciok
isready
readyok
ucinewgame
isready
readyok
position startpos moves e2e4 e7e5 d1h5 b8a6
go depth 30
(... output snipped ...)
info depth 30 seldepth 41 multipv 1 score cp 134 nodes 134484918 nps 1603320 has
hfull 999 tbhits 0 time 83879 pv h5e5 d8e7 e5e7 g8e7 a2a3 d7d5 e4d5 e7d5 g1f3 f8
d6 b1c3 d5f6 f1c4 e8g8 e1g1 c7c6 d2d3 a6c7 f1e1 c8g4 f3g5 g4f5 c3e4 f5e4 g5e4 f6
e4 d3e4 a8e8 c1d2 b7b5 c4d3 g7g6 d2c3
bestmove h5e5 ponder d8e7
stop
setoption name Contempt value 0
isready
readyok
ucinewgame
isready
readyok
position startpos moves e2e4 e7e5 d1h5 b8a6
go depth 30
(... output snipped ...)
info depth 30 seldepth 43 multipv 1 score cp 118 nodes 146824403 nps 1572989 has
hfull 999 tbhits 0 time 93341 pv h5e5 d8e7 e5e7 g8e7 f1a6 b7a6 f2f3 d7d5 d2d3 d5
e4 f3e4 f7f5 b1c3 f5e4 c3e4 c8f5 g1f3 e7c6 c1e3 f5e4 d3e4 e8c8 e1e2 f8d6 f3d2 d6
e5 c2c3 h8e8 a1f1 e5f6 f1e1 a6a5 e1f1 a5a4 h2h3
bestmove h5e5 ponder d8e7
quit

$



  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 3 
Topic Tools
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo