which engine(s) best play/understand the KID?

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

Moderator: Ras

yanquis1972
Posts: 1766
Joined: Wed Jun 03, 2009 12:14 am

which engine(s) best play/understand the KID?

Post by yanquis1972 »

this is a favorite opening of mine but it seems that most engines i've used when analysing KID games just give white a large-to-massive plus out of the basic setup and for a good time afterwards (even in black victories). assuming they're wrong & theory is correct, what engines best evaluate and play the KID? i realize these two are not necessarily part & parcel.
LaurenceChen
Posts: 101
Joined: Fri Jun 09, 2006 4:58 am

Re: which engine(s) best play/understand the KID?

Post by LaurenceChen »

You will find this issue in the Reti Opening, English Opening and Dutch Stonewall... the engines don't understand these type of closed pawn formations... Perhaps, Rybka 4 will address this issue... if it ever gets release... the author did mention Rybka 4 would understand closed positions much better than Rybka 3...
LaurenceChen
Posts: 101
Joined: Fri Jun 09, 2006 4:58 am

Re: which engine(s) best play/understand the KID?

Post by LaurenceChen »

Have you tried the Monte Carlo analysis in Fritz11/12? It will work only with Rybka single core engine... don't make the mistake in using the Ryba mp version...
Monte Carlo analysis would perhaps give you a more "correct" evaluation instead of depending on the PV of the engine...
User avatar
David Dahlem
Posts: 900
Joined: Wed Mar 08, 2006 9:06 pm

Re: which engine(s) best play/understand the KID?

Post by David Dahlem »

yanquis1972 wrote:this is a favorite opening of mine but it seems that most engines i've used when analysing KID games just give white a large-to-massive plus out of the basic setup and for a good time afterwards (even in black victories). assuming they're wrong & theory is correct, what engines best evaluate and play the KID? i realize these two are not necessarily part & parcel.
Why not play a KID theme tournament? Should be interesting.
User avatar
Eelco de Groot
Posts: 4663
Joined: Sun Mar 12, 2006 2:40 am
Full name:   Eelco de Groot

Re: which engine(s) best play/understand the KID?

Post by Eelco de Groot »

The position is not really closed here yet. Rainbow Serpent gives +0.6 pawns for White, mainly for the space advantage I think. For Rainbow Serpent that is not a very big opening evaluation. But it probably does not understand much about fianchettoed Bishops or important diagonals. I don't know much about the King's Indian, do you have some example positions that you tried to analyze and where Rybka or other engines really make fools of themselves here?

Eelco

[ECO "E70 - King's Indian Defence"]

1. d4 Nf6 2. c4 g6 3. Nc3 Bg7 4. e4 *

[d]rnbqk2r/ppppppbp/5np1/8/2PPP3/2N5/PP3PPP/R1BQKBNR b KQkq -

Engine: Rainbow Serpent 1.6.3s(dc) Build 103 (Athlon 2009 MHz, 128 MB)
by Tord Romstad, Marco Costalba, Joona Kiiski Modifications: Dann Corbit

1.00 0:00 -0.16 4...O-O (59) 0

2.00 0:00 -0.64 4...O-O 5.Nf3 (100) 0

3.00 0:00 -0.56 4...O-O 5.e5 Nh5 (387) 3

4.00 0:00 -0.96 4...O-O 5.e5 Nh5 6.Nf3 (643) 5

4.00 0:00 -0.92 4...Nc6 5.e5 Nh5 6.Nf3 (1.280) 10

4.00 0:00 -0.44 4...d6 5.Nf3 O-O 6.Bd3 (1.606) 12

5.00 0:00 -0.20 4...d6 5.Nf3 O-O 6.e5 dxe5 7.Nxe5 (2.335) 18

6.00 0:00 -0.80-- 4...d6 5.Nf3 O-O 6.Bd3 Nc6 7.O-O (3.357) 26

6.00 0:00 -0.64 4...c5 5.dxc5 Nc6 6.Nf3 O-O 7.Bf4 (5.752) 40

7.00 0:00 -0.56 4...c5 5.dxc5 Nc6 6.Bd3 Qa5 7.Nh3 O-O
8.O-O Qxc5 (16.977) 108

8.00 0:00 -0.56 4...c5 5.dxc5 Nc6 6.Bd3 Qa5 7.Nh3 O-O
8.O-O Qxc5 (26.452) 140

9.00 0:00 -0.56 4...c5 5.dxc5 Nc6 6.Bd3 Qa5 7.Nh3 O-O
8.O-O Qxc5 (36.852) 180

10.00 0:00 -0.48 4...c5 5.dxc5 Nc6 6.Bd3 O-O 7.Nh3 Nh5
8.O-O Bxc3 9.bxc3 d6 (86.686) 276

11.00 0:01 -0.28++ 4...c5 5.dxc5 Qa5 6.Bd3 Ng4 7.Bd2 Ne5 (683.274) 450

12.01 0:02 -0.32 4...c5 5.dxc5 O-O 6.Bd3 Nc6 7.Nf3 Ng4
8.O-O Bxc3 9.bxc3 Q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10.dxe5 Bxf3
11.Bxf3 Ncxe5 12.Be2 Re8 13.Qd5 Nc6
14.Bg5 Nb6 15.Qb5 Bf6 (150.850.689) 498

21.01 12:37 -0.48 4...O-O 5.Nf3 d6 6.Be2 Bg4 7.O-O Nfd7
8.Rb1 Nc6 9.Be3 e5 10.d5 Bxf3
11.Bxf3 Nd4 12.Bxd4 exd4 13.Nb5 Ne5
14.Nxd4 Nxc4 15.b3 Ne5 16.Rc1 Nxf3+
17.Nxf3 (374.214.675) 494

22.01 16:32 -0.60 4...O-O 5.Nf3 d6 6.Be2 Bg4 7.O-O Nfd7
8.Rb1 Nc6 9.Be3 e5 10.d5 Bxf3
11.Bxf3 Nd4 12.Bxd4 exd4 13.Nb5 Ne5
14.Be2 Qh4 15.f3 Rac8 16.Kh1 Nd7
17.Nxd4 Be5 (487.560.603) 491

23.01 25:23 -0.60 4...O-O 5.Nf3 d6 6.Be2 Bg4 7.O-O Nfd7
8.Be3 c5 9.d5 Bxc3 10.bxc3 Bxf3
11.Bxf3 Qa5 12.Bh6 Re8 13.Qc1 Nb6
14.Be2 Na4 15.Qa3 Nd7 16.Rab1 Ndb6
17.Bd2 Qa6 (747.398.832) 490

best move: O-O time: 27:49.750 min n/s: 491.948 nodes: 821.430.213
Debugging is twice as hard as writing the code in the first
place. Therefore, if you write the code as cleverly as possible, you
are, by definition, not smart enough to debug it.
-- Brian W. Kernighan
User avatar
Eelco de Groot
Posts: 4663
Joined: Sun Mar 12, 2006 2:40 am
Full name:   Eelco de Groot

Re: which engine(s) best play/understand the KID?

Post by Eelco de Groot »

Stockfish 1.6.3 JA gives a little less advantage, +0,5 for White in the same position. Jim Ablett's compile is about 10% faster than Rainbow Serpent in nodes per second on my machine, 32 bits Windows.


[d]rnbqk2r/ppppppbp/5np1/8/2PPP3/2N5/PP3PPP/R1BQKBNR b KQkq -

Engine: Stockfish 1.6.3 JA (128 MB)
by Tord Romstad, Marco Costalba, Joona Kiiski

10.00 0:00 -0.64++ 4...c5 5.d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nf3 O-O 7.Be2 Bg4
8.O-O Nbd7 9.Bg5 a6 10.a3 Qc7 11.Re1 Rfd8
12.b3 Bxf3 13.Bxf3 Ne5 14.Be2 (77.872.986) 581

20.01 3:41 -0.80 4...c5 5.d5 d6 6.Nf3 O-O 7.Be2 Bg4
8.O-O Nbd7 9.Bg5 a6 10.a3 Qc7 11.Re1 Rfd8
12.b3 Bxf3 13.Bxf3 Ne5 14.Be2 h6 (128.228.036) 577

20.02 6:22 -0.60 4...d6 5.Nf3 O-O 6.Be2 Bg4 7.O-O Nfd7
8.Rb1 Nc6 9.Be3 Nb6 10.c5 Bxf3
11.gxf3 dxc5 12.dxc5 Nd7 13.f4 Bxc3
14.bxc3 Qc8 15.Qd5 (216.979.020) 566

21.01 14:26 -0.52 4...d6 5.Nf3 O-O 6.Be2 Bg4 7.O-O Nfd7
8.Rb1 Nc6 9.Be3 e5 10.dxe5 Bxf3
11.Bxf3 dxe5 12.Qb3 Qb8 13.Nd5 Nd4
14.Qd1 Rd8 15.Ne7+ Kh8 16.Rc1 Nc5
17.Nd5 (480.284.494) 554

22.01 31:24 -0.48 4...d6 5.Nf3 O-O 6.Be2 Bg4 7.O-O Nfd7
8.Rb1 Nc6 9.Be3 e5 10.dxe5 Bxf3
11.Bxf3 dxe5 12.Qb3 Qb8 13.Nd5 Nd4
14.Qb4 c6 15.Ne7+ Kh8 16.Rfd1 Nxf3+
17.gxf3 Rd8 (1.027.848.956) 545

best move: d7-d6 time: 35:15.390 min n/s: 546.055 nodes: 1.155.120.238
Debugging is twice as hard as writing the code in the first
place. Therefore, if you write the code as cleverly as possible, you
are, by definition, not smart enough to debug it.
-- Brian W. Kernighan
metax
Posts: 344
Joined: Wed Sep 23, 2009 5:56 pm
Location: Germany

Re: which engine(s) best play/understand the KID?

Post by metax »

My engine gives it a +0.4 (it is interesting that the score has a tendency to go down in this position also in Stockfish). But that's quite natural - most engines like mto play with more room.

Code: Select all

FEN: rnbqk2r/ppppppbp/5np1/8/2PPP3/2N5/PP3PPP/R1BQKBNR b KQkq - 0 1 

ChessMind:
  4/15	00:00	       6.107	38.000	 +0,60	d7d6 Lf1e2 OO Lc1f4
  5/18	00:00	      27.060	95.000	 +0,60	d7d6 Lf1e2 OO Lc1f4 Sb8c6
  6/18	00:00	      39.256	109.000	+0,63	d7d6 Lf1e2 OO d4d5 c7c6 d5xc6
  7/22	00:01	      72.820	133.000	+0,58	d7d6 Lf1e2 OO Lc1g5 c7c6 Dd1c2 c6c5
  8/21	00:02	     330.378	160.000	+0,57	d7d6 Lf1e2 OO Lc1g5 Tf8e8 d4d5 e7e5 d5xe6/ep
  9/27	00:06	     995.886	172.000	+0,49	d7d6 Lf1e2 OO Lc1f4 Tf8e8 Ta1c1 Sf6h5 Lf4g5 Sh5f6
 10/26	00:19	   3.418.939	177.000	+0,45	d7d6 Lf1e2 OO Sg1f3 Tf8e8 Lc1g5 c7c6 Dd1c2 Lc8g4 Lg5xf6
 11/32	00:45	   8.122.235	177.000	+0,41	d7d6 Lf1e2 OO Sg1f3 Tf8e8 Dd1c2 c7c6 Lc1d2 Lc8g4 Ta1d1 e7e5
 12/32	01:09	  12.377.960	177.000	+0,44	d7d6 Lf1e2 OO Sg1f3 Tf8e8 Dd1c2 e7e5 d4d5 Lc8g4 Lc1g5 a7a6 Lg5xf6
maxchgr

Re: which engine(s) best play/understand the KID?

Post by maxchgr »

Rybka and Toga play the KID well, but you'll have to "help it along" in two occassions, to avoid locking up the queenside for white, and to suggest to Rybka to play on the Kingside for black instead of defending on the queenside as it will sometimes do in the closed positions (but that's not to say that defending on the queenside is not objectively the correct route). If you make a couple of moves on the Kingside, it will set it on a path where there's no turning back, and it will continue attacking. But I'd like to emphasize that Rybka and Toga 1.4.1 SE play KID well.