Cfish question

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Dann Corbit
Posts: 12537
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Cfish question

Post by Dann Corbit »

According to my understanding, Cfish is a simple translation from C++ into C of Stockfish.

But Cfish is a much better mate solver, for some reason, beyond the change in NPS. For instance... Given this position:
[d]3K4/6p1/3B1pP1/1p1B1P2/1P3P1p/8/4p1pp/4Nb1k w - -

Code: Select all

Stockfish-x64-mingw output:
 39/10	00:00	   2.747.528	2.932.260	 0.00	Bc5 h3 Nd3 e1B Nxe1 Bc4 Bc6 Bd5 Bxd5
 40/72	00:22	 156.352.201	6.960.432	+11.24	Ke8 h3 Kf8 Kg1 Bc5+ Kh1 Nd3 e1Q Nxe1 Bc4 Bf3 Bd5 Kxg7 Bxf3 Nxf3 g1Q Bxg1 hxg1Q Nxg1 Kxg1 Kxf6 h2 g7 h1Q g8Q+ Kf1 Qe6 Qb7 Ke5 Qc7+ Kd4 Qa7+ Kd5 Kg1 f6 Qa2+ Kd6 Qa6+ Ke5 Qa1+ Kf5 Qb1+ Kg5 Kf1 Qd5 Qxb4 Kg6 Ke2 f7 Qb1+ Kf6 b4 f8Q Qa1+ Kf5
 41/72	01:03	 547.263.540	8.651.977	+15.53	Ke8 h3 Kf8 Kg1 Bc5+ Kh1 Nd3 e1Q Nxe1 Bc4 Bf3 Bd5 Kxg7 Bxf3 Nxf3 g1Q Bxg1 hxg1Q Nxg1 Kxg1 Kxf6 h2 g7 Kf1 g8Q h1Q Qe6 Qb7 Ke5 Qc7+ Kd4 Qc2 f6 Qf2+ Kd5 Qa2+ Kd6 Qa6+ Ke7 Qb7+ Kf8 Qg2 Qe5 Qa8+ Kf7 Qb7+ Kg6 Qc6 Kg7 Qb6 Qc5 Qa6 f7 Qa1+ Kg6 Qa6+ Kg5 Qb7 f8Q
 42/92	05:25	3.273.163,783	10.044.850	+63.05	Ke8 h3 Kf8 Kg1 Bc5+ Kh1 Nc2 e1B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kg7 Qd7+ Qe7 Qc6 Ne2+ Kd1 Nc3+ Kc1 Qe3+ Kc2 Qe4+ Qxe4 Nxe4 Kd3 f6 Kc2 f7 Kd3 f8Q
    41/59+	01:52	 627,177,228	5,603,348	+19.10	Ke7
    41/59+	01:52	 631,128,364	5,626,133	+19.17	Ke7
    41/59-	01:52	 633,091,041	5,638,301	+18.24	Ke7 Kg1
    41/59+	01:53	 644,558,197	5,706,933	+19.11	Ke7
    41/69+	02:05	 845,559,413	6,720,496	+38.45	Ke7
    41/71	02:06	 857,224,209	6,770,588	+42.67	Ke7 Kg1 Bc5+ Kh1 Kf8 h3 Nd3 e1Q Nxe1 Bc4 Bf3 Bd5 Kxg7 Bxf3 Nxf3 g1R Nxg1 hxg1Q Bxg1 Kxg1 Kxf6 Kf2 g7 h2 g8Q h1Q Qe6 Kg3 Kg7 Qb7+ Qf7 Qa8 Qg6+ Kh2 f6 Qa1 Qh5+ Kg3 Qxb5 Kf2 Qc5+ Kf3 Qg5 Kf2 Qh5 Qg1+ Qg6 Qa1 Qf5 Kf3 Qd3+ Kg4 Qd5 Qa7+ f7 Qc7 Qg5+ Kf3 Qh5+ Kg3 Qg5+ Kh3 Qf5+ Kg3 Qd3+ Kg4 Qg6+ Kh4
    42/68-	02:09	 911,288,687	7,019,524	+37.94	Ke7 Kg1
    42/80+	02:10	 915,251,771	7,033,689	+42.67	Ke7
    42/81+	02:17	1,025,175,607	7,481,668	+52.57	Ke7
    42/87-	02:20	1,081,382,307	7,720,519	+35.81	Ke7 Kg1
    42/87+	02:20	1,088,383,251	7,748,099	+46.28	Ke7
    42/87+	02:24	1,156,696,555	7,991,050	+60.28	Ke7
    42/95	02:34	1,320,710,361	8,570,031	+63.92	Ke7 h3 Kf8 Kg1 Bc5+ Kh1 Nd3 e1Q Nxe1 Bc4 Bf3 Bd5 Kxg7 Bxf3 Nxf3 g1R Nxg1 hxg1Q Bxg1 Kxg1 Kxf6 h2 g7 Kf2 g8Q h1Q Qe6 Qh7 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learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
lauriet
Posts: 199
Joined: Sun Nov 03, 2013 9:32 am

Re: Cfish question

Post by lauriet »

Wow !
So that means if it was translated into Pascal it would be even better. :D
ernest
Posts: 2041
Joined: Wed Mar 08, 2006 8:30 pm

Re: Cfish question

Post by ernest »

Dann Corbit wrote:According to my understanding, Cfish is a simple translation from C++ into C of Stockfish.

But Cfish is a much better mate solver, for some reason, beyond the change in NPS.
I must say I do not understand...
Cfish should be identical to the corresponding Stockfish dev (and for the bench command, you get the same node number).
Unless you did not use single thread in your test !
Dann Corbit
Posts: 12537
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Cfish question

Post by Dann Corbit »

ernest wrote:
Dann Corbit wrote:According to my understanding, Cfish is a simple translation from C++ into C of Stockfish.

But Cfish is a much better mate solver, for some reason, beyond the change in NPS.
I must say I do not understand...
Cfish should be identical to the corresponding Stockfish dev (and for the bench command, you get the same node number).
Unless you did not use single thread in your test !
I guess my (unstated) question was:
"Why is cfish much better at resolving mates if it is a 1:1 translation to C?"

My guess is that Ronald has made some improvements so that it is more than a simple translation.
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.
User avatar
Eelco de Groot
Posts: 4561
Joined: Sun Mar 12, 2006 2:40 am
Full name:   

Re: Cfish question

Post by Eelco de Groot »

I only get to +10 with Kaissa


[D]3K4/6p1/3B1pP1/1p1B1P2/1P3P1p/8/4p1pp/4Nb1k w - -

Engine: Kaissa HT (i7 6700, 3 hyperthreads, 512 MB)
by T. Romstad, M. Costalba, J. Kiiski, G. Linscott

33/57 0:03 +3.31++ 1.Ke7 (51.028.076) 14786

33/61 0:04 +4.36++ 1.Ke7 (69.921.933) 15157

33/72 0:06 +5.10 1.Ke7 h3 2.Kf8 Kg1 3.Bc5+ Kh1 4.Nd3 e1Q
5.Nxe1 Bc4 6.Bf3 Bd5 7.Kxg7 Bxf3
8.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.Qe6 (409.452.736) 15981

43/76 0:29 +6.15++ 1.Ke7 (468.985.489) 15998

43/76 0:33 +6.23++ 1.Ke7 (533.918.027) 16010

43/76 0:38 +6.34++ 1.Ke7 (618.558.040) 16119

43/76 0:47 +6.50++ 1.Ke7 (780.297.485) 16330

43/78 1:00 +6.72++ 1.Ke7 (996.260.369) 16441

43/85 1:12 +7.01++ 1.Ke7 (1.205.297.280) 16567

43/85 1:24 +7.39++ 1.Ke7 (1.402.506.044) 16641

43/85 1:31 +7.39 1.Ke7 h3 2.Kf8 Kg1 3.Bc5+ Kh1 4.Nc2 e1Q
5.Nxe1 Bc4 6.Bf3 Bd5 7.Kxg7 Bxf3
8.Nxf3 g1Q 9.Bxg1 hxg1R 10.Nxg1 Kxg1
11.Kxf6 h2 12.g7 Kf1 13.g8Q h1Q
14.Qe6 (1.520.715.710) 16687

44/79 1:36 +7.47++ 1.Ke7 (1.605.274.194) 16689

44/81 1:47 +7.54++ 1.Ke7 (1.802.871.241) 16762

44/81 1:57 +7.65++ 1.Ke7 (1.968.757.632) 16808

44/81 2:00 +7.81++ 1.Ke7 (2.033.603.512) 16824

44/96 2:09 +7.97 1.Ke7 h3 2.Kf8 Kg1 3.Bc5+ Kh1 4.Nc2 e1Q
5.Nxe1 Bc4 6.Bf3 Bd5 7.Kxg7 Bxf3
8.Nxf3 g1Q 9.Nxg1 hxg1R 10.Bxg1 Kxg1
11.Kxf6 Kf1 12.g7 h2 13.g8Q h1Q
14.Qe6 (2.177.250.290) 16841

45/80 2:32 +8.04++ 1.Ke7 (2.579.267.634) 16965

45/82 2:42 +8.12++ 1.Ke7 (2.766.429.269) 17005

45/82 2:47 +8.23++ 1.Ke7 (2.849.052.140) 17010

45/82 2:56 +8.39++ 1.Ke7 (3.000.243.137) 17012

45/82 3:06 +8.60++ 1.Ke7 (3.181.552.968) 17027

45/84 4:38 +8.90++ 1.Ke7 (4.810.816.299) 17267

45/85 4:38 +8.90 1.Ke7 h3 2.Kf8 Kg1 3.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 Bd5 7.Kxg7 Bxf3
8.Nxf3 g1R 9.Nxg1 hxg1Q 10.Bxg1 Kxg1
11.Kxf6 h2 12.g7 h1Q 13.g8Q+ Kf1
14.Qe6 (29.485.710.007) 17843

60/102 30:43 +9.80++ 1.Ke7 (32.936.663.401) 17867

60/102 31:55 +9.87++ 1.Ke7 (34.245.136.603) 17879

60/102 42:37 +9.98++ 1.Ke7 (46.020.700.256) 17991

60/102 46:57 +9.98 1.Ke7 (50.753.131.643) 18013

59/104 46:57 +10.10 1.Ke7 (50.753.131.643) 18013

best move: Kd8-e7 time: 46:57.562 min n/s: 18.013.917 nodes: 50.753.131.643

Not a real +10 as the PV was shortened and not yet compltete, outputted by stopping search. Of course, no tablebases as I don't have them installed So I was guessing Dann was using the new DMZ tables perhaps (see Ronald's post below in this forum) but I don't think they are available yet ... If without DMZ, it still is good, compared with the no tablebases Kaissa. Let's have the comparison with DMZ Dann :)

If you're going to waste so much diskspace already with tablebases, I'd add DMZ It's not my favorite part of Stockfish code, the Syzygy code I don't use but in some stuations it helps and lots of people love it
Last edited by Eelco de Groot on Fri Nov 17, 2017 9:41 pm, edited 1 time in total.
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
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: Cfish question

Post by syzygy »

Dann Corbit wrote:
ernest wrote:
Dann Corbit wrote:According to my understanding, Cfish is a simple translation from C++ into C of Stockfish.

But Cfish is a much better mate solver, for some reason, beyond the change in NPS.
I must say I do not understand...
Cfish should be identical to the corresponding Stockfish dev (and for the bench command, you get the same node number).
Unless you did not use single thread in your test !
I guess my (unstated) question was:
"Why is cfish much better at resolving mates if it is a 1:1 translation to C?"

My guess is that Ronald has made some improvements so that it is more than a simple translation.
Well, the output you pasted does not show it solving any mates.

Cfish has the "early_mate" functionality which allows it to find mates ending in a TB position. There is no reason why it would be much faster at finding TB wins (which your output does suggest).

Of course with multiple threads no two runs will be the same. And even with 1 thread there will be differences between Cfish and SF once the TBs are getting probed due to the rewrite of SF's TB code. I have not measured how much more TB-probing overhead SF has, but if it leads to faster or slower mates in a particular position, that is just a random effect.
User avatar
Eelco de Groot
Posts: 4561
Joined: Sun Mar 12, 2006 2:40 am
Full name:   

Re: Cfish question

Post by Eelco de Groot »

Dann Corbit wrote:According to my understanding, Cfish is a simple translation from C++ into C of Stockfish.

But Cfish is a much better mate solver, for some reason, beyond the change in NPS. For instance... Given this position:
[d]3K4/6p1/3B1pP1/1p1B1P2/1P3P1p/8/4p1pp/4Nb1k w - -
With my experimental Kaissa a.k.a Project X Slagharen engine I do not get the intended Ke7 anymore. The standard Kaissa did but cant resolve it in reasonable time.

How are the DMZ files coming :) De Militarized Zone I probably was thinking about Korea at the time.

Chest says, or at least did say in 2011, that it's a #16 http://www.talkchess.com/forum/viewtopi ... p1pp+4nb1k

The Cfish that I have, I compiled more than a year ago, in Multi PV and with no Syzygy, says it is #15 (or shorter) It would be nice if someone could confirm that Stockfish is unable to solve this :(


3K4/6p1/3B1pP1/1p1B1P2/1P3P1p/8/4p1pp/4Nb1k w - -

Engine: Cfish 170916 64 POPCNT (single threaded!, TDM-GCC compile of sources 2016 sept 17, 512 MB)
by T. Romstad, M. Costalba, J. Kiiski, G. Linscott (and Ronald de Man)

70 12:26 +M15 1.Ba8 h3 2.Ke7 Kg1 3.Bc5+ Kh1 4.Nc2 e1R+
5.Nxe1 Be2 6.Kf8 Bh5 7.Kxg7 Be2
8.Kxf6 Bc4 9.Nf3 Bg8 10.g7 Bc4
11.Nd2 Bd5 12.Nf1 gxf1Q 13.Bxd5+ Qg2
14.g8Q (1.213.366.094) 1626

70 12:26 +M15 1.Ke7 h3 2.Ba8 Kg1 3.Bc5+ Kh1 4.Nc2 e1R+
5.Nxe1 Be2 6.Kf8 Bh5 7.Kxg7 Be2
8.Kxf6 Bc4 9.Nf3 Bg8 10.g7 Bc4
11.Nd2 Bd5 12.Nf1 g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Bg8 10.g7 Bc4
11.Nd2 Bd5 12.Nf1 gxf1Q 13.Bxd5+ Qg2
14.g8Q (3.256.672.493) 1637

75 33:09 +M15 1.Bc6 h3 2.Ke7 Kg1 3.Bc5+ Kh1 4.Nd3 e1R+
5.Nxe1 Be2 6.Kf8 Bg4 7.Kxg7 Be2
8.Kxf6 Bh5 9.g7 Bf7 10.Nf3 Bc4
11.Nd2 Bd5 12.Nf1 gxf1Q 13.Bxd5+ Qg2
14.g8Q (3.256.672.493) 1637

75 33:09 +M15 1.Bb7 h3 2.Ke7 Kg1 3.Bc5+ Kh1 4.Nc2 e1R+
5.Nxe1 Be2 6.Kf8 Bd3 7.Nf3 Bc4 8.Bc6 Bb3
9.Kxg7 Ba2 10.Kh8 Bc4 11.g7 Ba2
12.g8Q Bb1 13.Qg3 g1Q 14.Nxg1+ (3.256.672.493) 1637

74 33:09 +M23 1.Be4 h3 2.Ke8 Kg1 3.Bc5+ Kh1 4.Nd3 e1B
5.Nxe1 Bd3 6.Bxd3 g1Q 7.Be4+ Qg2
8.Bxg2+ hxg2 9.Nf3 g1Q 10.Bxg1 Kg2
11.Nxh2 Kxg1 12.Kf8 Kf2 13.Kxg7 Ke3
14.Kxf6 (3.256.672.493) 1637


Kaisa at least, is unable at the moment to find any of the above solutions not without using Multi PV at least, I have not tried that. So there must be something different in Cfish as Ronald is also saying, but with tablebases it may actually go slower?

This is an experimental search Kaissa and apparently it can't find the shorter solution(s). I post it for reference anyway. There is a small possibility that if it is Zugzwang, it would do better in Multi PV. Have not tried that thus far.

3K4/6p1/3B1pP1/1p1B1P2/1P3P1p/8/4p1pp/4Nb1k w - -

Engine: Kaissa HT (512 MB)
by T. Romstad, M. Costalba, J. Kiiski, G. Linscott

36/53 0:02 +4.38 1.Bxg2+ Bxg2 2.Bc5 Bf3 3.Kd7 Bh5
4.Ke7 Bxg6 5.Kf8 Bh7 6.Kxg7 Bxf5
7.Kxf6 h3 8.Kg5 Bb1 9.Kh4 Bf5 10.Bd4 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4.50++ 1.Bxg2+ (70.816.895) 15203

42/59 0:06 +4.57++ 1.Bxg2+ (106.953.528) 16032

42/59 0:09 +4.69++ 1.Bxg2+ (167.853.771) 17256

42/61 0:13 +4.85++ 1.Bxg2+ (232.606.985) 17820

42/68 0:15 +5.06++ 1.Bxg2+ (273.075.778) 17772

42/68 0:19 +5.35++ 1.Bxg2+ (343.164.370) 18035

42/68 0:23 +5.74++ 1.Bxg2+ (417.133.338) 18072

42/68 0:28 +6.24++ 1.Bxg2+ (510.872.846) 18108

42/74 0:32 +6.40 1.Bxg2+ Bxg2 2.Bc5 Bf3 3.Ke7 Bg4
4.Kf7 Bxf5 5.Kxg7 Bxg6 6.Kxf6 Be4
7.Kg5 h3 8.Kh4 Bf5 9.Kg3 Bd7 10.Kf3 Bf5
11.Kxe2 Be4 12.Kf2 Bd3 13.Kg3 Bf5
14.Kh4 (576.564.927) 17835

43/69 0:32 +6.32-- 1.Bxg2+ Bxg2 (577.408.582) 17829

43/69 0:32 +6.40++ 1.Bxg2+ (578.283.682) 17821

43/69 0:33 +6.40 1.Bxg2+ Bxg2 2.Bc5 Bf3 3.Ke7 Bg4
4.Kf7 Bxf5 5.Kxg7 Bxg6 6.Kxf6 Be4
7.Kg5 h3 8.Kh4 Bf5 9.Be3 Bd7 10.Kg3 Bf5
11.Bc5 Bc8 12.Kf3 Be6 13.Kxe2 Bg4+
14.Kf2 (597.856.327) 17717

44/60 0:33 +6.40 1.Bxg2+ Bxg2 2.Bc5 Bf3 3.Ke7 Bg4
4.Kf7 Bxf5 5.Kxg7 Bxg6 6.Kxf6 Be4
7.Kg5 h3 8.Kh4 Bf5 9.Be3 Bd7 10.Bd4 Bg4
11.Bb6 Bf5 12.Kg3 Bg4 13.Be3 Be6
14.Bc5 (600.412.948) 17703

45/56 0:34 +6.40 1.Bxg2+ Bxg2 2.Bc5 Bf3 3.Ke7 Bg4
4.Kf7 Bxf5 5.Kxg7 Bxg6 6.Kxf6 Be4
7.Kg5 h3 8.Kh4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408
.
.
.
60/76 10:46 +13.76 1.Bxg2+ Bxg2 2.Bc5 Bf3 3.Ke7 Bh5
4.Kf8 h3 5.Kxg7 Bxg6 6.Kxf6 Bxf5
7.Kg5 Bd7 8.Kh4 Bf5 9.Kg3 Bg4 10.Kf2 Bd7
11.Kxe2 Bc6 12.Ba7 Bd7 13.Be3 Bc6
14.Bc5 (11.732.322.944) 18150

61/60 11:07 +13.83++ 1.Bxg2+ (12.150.662.979) 18201

61/83 11:55 +13.91++ 1.Bxg2+ (13.087.602.096) 18302

61/83 13:28 +14.02++ 1.Bxg2+ (14.808.391.087) 18324

61/83 14:10 +14.18++ 1.Bxg2+ (15.632.667.842) 18378

61/83 15:17 +14.40++ 1.Bxg2+ (17.084.791.956) 18626

61/83 16:18 +14.69++ 1.Bxg2+ (18.392.375.196) 18803

61/83 18:06 +15.07++ 1.Bxg2+ (20.944.336.436) 19277

61/85 19:42 +15.57++ 1.Bxg2+ (22.956.318.950) 19406

61/88 21:00 +16.22++ 1.Bxg2+ (24.351.779.594) 19323

61/88 22:28 +17.04++ 1.Bxg2+ (25.974.090.532) 19267

61/88 25:16 +18.09++ 1.Bxg2+ (29.141.541.141) 19219

61/88 27:30 +19.42++ 1.Bxg2+ (31.509.805.356) 19096

61/88 29:29 +21.11++ 1.Bxg2+ (33.683.765.187) 19036

61/88 30:59 +23.24++ 1.Bxg2+ (35.297.824.537) 18982

61/88 32:27 +25.92++ 1.Bxg2+ (36.872.135.139) 18931

61/88 33:50 +29.29++ 1.Bxg2+ (38.351.511.399) 18892

61/102 35:17 +33.52++ 1.Bxg2+ (39.939.943.951) 18863

61/102 36:07 +38.82++ 1.Bxg2+ (40.831.832.436) 18836

61/102 38:04 +45.47++ 1.Bxg2+ (43.468.470.289) 19026

61/102 41:00 +53.80++ 1.Bxg2+ (48.064.578.157) 19535

61/107 43:45 +64.24++ 1.Bxg2+ (51.536.053.828) 19630

61/117 45:06 +77.31++ 1.Bxg2+ (53.177.604.068) 19647

61/117 47:21 +93.66++ 1.Bxg2+ (56.162.631.183) 19767

61/129 49:35 +114.12++1.Bxg2+ (59.025.906.988) 19837

61/129 53:10 +114.12 1.Bxg2+ Bxg2 2.Bc5 Bf3 3.Ke7 Bh5
4.Kf8 Bxg6 5.fxg6 f5 6.Bf2 h3 7.Bh4 Kg1
8.Nf3+ Kg2 9.Nxh2 Kxh2 10.Kxg7 Kg2
11.Kf6 Kf1 12.g7 h2 13.g8Q e1Q
14.Bxe1 (63.766.156.461) 19986

62/103 54:36 +114.20++1.Bxg2+ (65.549.938.036) 20005

62/110 58:37 +114.27++1.Bxg2+ (71.164.009.445) 20232

62/112 64:48 +114.39++1.Bxg2+ (81.152.994.286) 20870

62/112 70:36 +114.55++1.Bxg2+ (90.417.770.049) 21343

62/112 79:24 +114.76++1.Bxg2+ (104.375.334.818) 21906

62/112 88:01 +115.05++1.Bxg2+ (118.389.310.326) 22417

62/128 102:23 +115.44++1.Bxg2+ (141.954.687.426) 23105

62/128 113:41 +115.94++1.Bxg2+ (160.008.008.153) 23455

62/128 133:28 +116.58++1.Bxg2+ (191.012.836.588) 23849

62/128 152:56 +117.41++1.Bxg2+ (223.489.330.271) 24354

62/128 176:06 +118.46++1.Bxg2+ (258.210.014.982) 24436

62/129 194:34 +119.79++1.Bxg2+ (284.292.110.514) 24350

62/129 210:27 +121.48++1.Bxg2+ (305.514.126.093) 24194

62/129 226:28 +123.61++1.Bxg2+ (325.663.222.690) 23965

62/129 266:38 +126.29++1.Bxg2+ (376.658.441.412) 23543

62/129 284:08 +129.65++1.Bxg2+ (397.846.989.365) 23336

62/129 404:38 +M44 1.Bxg2+ Bxg2 2.Bc5 Bf3 3.Ke7 Bh5
4.Kf8 Bxg6 5.fxg6 f5 6.Bf2 h3 7.Bh4 Kg1
8.Nf3+ Kg2 9.Nxh2 Kxh2 10.Kxg7 e1Q
11.Bxe1 Kg2 12.Kf6 h2 13.g7 h1Q
14.g8Q+ (545.230.973.232) 22457

63/90 404:38 +M44 1.Bxg2+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1Q
11.Bxe1 Kg2 12.Kf6 h2 13.g7 h1Q
14.g8Q+ (603.757.560.838) 21982

85/103 461:27 +M43 1.Bxg2+ Bxg2 2.Bc5 Bc6 3.Ke7 Be8
4.Bf2 Bxg6 5.fxg6 h3 6.Kf8 f5 7.Bh4 Kg1
8.Nf3+ Kg2 9.Nxh2 Kxh2 10.Kxg7 e1Q
11.Bxe1 Kg2 12.Kf6 h2 13.g7 h1Q
14.g8Q+ (607.663.149.723) 21947
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: 4561
Joined: Sun Mar 12, 2006 2:40 am
Full name:   

Re: Cfish question

Post by Eelco de Groot »

Ahh, I switched Project X to Multi PV, not clearing hash of 400 minute + run and suddenly it can see so much more :lol:


[D]3K4/6p1/3B1pP1/1p1B1P2/1P3P1p/8/4p1pp/4Nb1k w - -

Engine: Kaissa HT (512 MB)
by T. Romstad, M. Costalba, J. Kiiski, G. Linscott

77 5:46 +M14 1.Ba8 h3 2.Ke7 Kg1 3.Bc5+ Kh1 4.Nd3 e1R+
5.Nxe1 Be2 6.Kf8 Bg4 7.Kxg7 Bh5
8.Kf8 Be2 9.g7 Bc4 10.Nf3 Ba2 11.g8Q Bc4
12.Qg3 g1Q 13.Nxg1+ Bd5 14.Bxd5+ (6.461.362.297) 18621

77 5:46 +M14 1.Ke7 h3 2.Ba8 Kg1 3.Bc5+ Kh1 4.Nd3 e1R+
5.Nxe1 Be2 6.Kf8 Bg4 7.Kxg7 Bh5
8.Kf8 Be2 9.g7 Bc4 10.Nf3 Ba2 11.g8Q Bc4
12.Qg3 g1Q 13.Nxg1+ Bd5 14.Bxd5+ (6.461.362.297) 18621

77 5:46 +M15 1.Bc6 h3 2.Ke7 Kg1 3.Bc5+ Kh1 4.Nd3 e1Q+
5.Nxe1 Be2 6.Kf8 Bg4 7.Kxg7 Bd1
8.Kxf6 Bh5 9.g7 Bf7 10.Nf3 Ba2
11.Nd2 Bd5 12.Nf1 gxf1Q 13.Bxd5+ Qg2
14.g8Q (6.461.362.297) 18621

77 5:46 +M17 1.Ke8 h3 2.Bc6 Kg1 3.Bc5+ Kh1 4.Nd3 e1Q+
5.Nxe1 Bd3 6.Nf3 Bxf5 7.Nd2 Bxg6+
8.Ke7 Bd3 9.f5 g6 10.fxg6 f5 11.g7 Be4
12.Nxe4 fxe4 13.g8Q g1R 14.Qf7 (6.461.362.297) 18621

76 5:46 +M23 1.Be4 h3 2.Ke7 Kg1 3.Bc5+ Kh1 4.Nd3 e1B
5.Nxe1 Be2 6.Kf8 Bd3 7.Bxd3 g1Q
8.Be4+ Qg2 9.Bxg2+ hxg2 10.Nf3 g1N
11.Bxg1 hxg1Q 12.Nxg1 Kh2 13.Kxg7 Kxg1
14.Kxf6 (6.461.362.297) 18621
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
mar
Posts: 2554
Joined: Fri Nov 26, 2010 2:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Cfish question

Post by mar »

Well, Cheng finds certain win (Bb7) in ~8 seconds, mate in 17 in 1:35 and mate in 14 in 2:19, not so cool but depends on SMP luck, no TBs, no multipv (4 cores 1G hash).

Of course SF is like zillion elo stronger :)